Commit dcf1013
committed
[engine] Use result of slices.Compact
slices.Compact returns a value instead of mutating the input, so the old
code was not actually removing duplicates.
This only mattered when files were based as positional arguments to
`shac check`, which is not super common, and even less common that
someone would list the same file twice, hence why we didn't notice it
until it started being raised by the "lint" GitHub workflow.
I also updated the `govet` shac check to include the analyzer that was
catching this in the GitHub workflow.
Change-Id: I4a0eb6014d9d9dc1edc225ea60bf76d1fcc3f9501 parent eff781f commit dcf1013
3 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
615 | | - | |
| 615 | + | |
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments