Skip to content

Commit

Permalink
Fix several govet errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsa committed Feb 19, 2016
1 parent 652b4fe commit 63a85e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions internal/fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ func (fs *fileSystem) checkInvariants() {
for _, v := range fs.generationBackedInodes {
if fs.inodes[v.ID()] != v {
panic(fmt.Sprintf(
"Mismatch for ID %v: %p %p",
"Mismatch for ID %v: %v %v",
v.ID(),
fs.inodes[v.ID()],
v))
Expand All @@ -426,7 +426,7 @@ func (fs *fileSystem) checkInvariants() {
for _, v := range fs.implicitDirInodes {
if fs.inodes[v.ID()] != v {
panic(fmt.Sprintf(
"Mismatch for ID %v: %p %p",
"Mismatch for ID %v: %v %v",
v.ID(),
fs.inodes[v.ID()],
v))
Expand All @@ -452,7 +452,7 @@ func (fs *fileSystem) checkInvariants() {
if dir && !edir {
if !(fs.implicitDirInodes[in.Name()] == in) {
panic(fmt.Sprintf(
"implicitDirInodes mismatch: %q %p %p",
"implicitDirInodes mismatch: %q %v %v",
in.Name(),
fs.implicitDirInodes[in.Name()],
in))
Expand Down
2 changes: 1 addition & 1 deletion internal/gcsx/random_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ type randomReader struct {
func (rr *randomReader) CheckInvariants() {
// INVARIANT: (reader == nil) == (cancel == nil)
if (rr.reader == nil) != (rr.cancel == nil) {
panic(fmt.Sprintf("Mismatch: %v vs. %v", rr.reader, rr.cancel))
panic(fmt.Sprintf("Mismatch: %v vs. %v", rr.reader == nil, rr.cancel == nil))
}

// INVARIANT: start <= limit
Expand Down

0 comments on commit 63a85e3

Please sign in to comment.