1
0
mirror of https://github.com/mgechev/revive.git synced 2025-07-13 01:00:17 +02:00

refactor: enforce map and slice style (#1131)

This commit is contained in:
Oleksandr Redko
2024-11-16 19:05:30 +02:00
committed by GitHub
parent 1b4440c160
commit 0afba4ff15
12 changed files with 22 additions and 18 deletions

View File

@ -159,7 +159,7 @@ func parseInstructions(t *testing.T, filename string, src []byte) []instruction
}
if line == "OK" && ins == nil {
// so our return value will be non-nil
ins = make([]instruction, 0)
ins = []instruction{}
continue
}
switch extractDataMode(line) {