Skip to content

Commit 7622be3

Browse files
authored
Merge pull request #1978 from turian/fix/gosec-unhandled-error-store
Reviewed by darcy (PR sheriff). Trivial one-line gosec fix — hash.Write never errors.
2 parents 5e6a054 + e4c7a3b commit 7622be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/storage/dolt/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ func applyConfigDefaults(cfg *Config) {
254254
// Each test creates a unique temp directory, so hashing the path
255255
// gives each test its own database on the shared test server.
256256
h := fnv.New64a()
257-
h.Write([]byte(cfg.Path))
257+
_, _ = h.Write([]byte(cfg.Path)) // hash.Hash.Write never returns an error
258258
cfg.Database = fmt.Sprintf("testdb_%x", h.Sum64())
259259
} else {
260260
cfg.Database = "beads"

0 commit comments

Comments
 (0)