Skip to content

Commit

Permalink
Fix a couple of lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mostynb committed Aug 14, 2024
1 parent e333459 commit 47d8b9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cache/disk/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func WithStorageMode(mode string) Option {
c.diskCache.storageMode = casblob.Identity
return nil
} else {
return fmt.Errorf("Unsupported storage mode: " + mode)
return fmt.Errorf("Unsupported storage mode: %s", mode)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion cache/grpcproxy/grpcproxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func newFixture(t *testing.T, proxy cache.Proxy, storageMode string) *fixture {
go func() {
err := server.ServeGRPC(listener, grpcServer, false, false, true, diskCache, logger, logger)
if err != nil {
logger.Printf(err.Error())
logger.Printf("%s", err.Error())
}
}()

Expand Down

0 comments on commit 47d8b9b

Please sign in to comment.