Repository navigation
Commit df3170c
committed
fix(storage): drop ineffectual keyHash initial assignment
ineffassign caught `keyHash := base` in FileIDFromPath being
unconditionally overwritten by the suffix-strip switch (or
overridden by the default branch's early return). Switching to
`var keyHash string` makes the intent explicit: the switch assigns
in every path that doesn't return.
Pure cleanup. Pre-pushed through the same golangci-lint v2.0.2
binary CI uses; full repo now reports '0 issues'.1 parent 0a91e41 commit df3170c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
0 commit comments