We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e2b96d commit 4b765ddCopy full SHA for 4b765dd
activation/files.go
@@ -22,14 +22,7 @@ func FilesWithNames() map[string][]*os.File {
22
filesWithNames := map[string][]*os.File{}
23
24
for _, f := range files {
25
- current, ok := filesWithNames[f.Name()]
26
-
27
- if !ok {
28
- current = []*os.File{}
29
- filesWithNames[f.Name()] = current
30
- }
31
32
- filesWithNames[f.Name()] = append(current, f)
+ filesWithNames[f.Name()] = append(filesWithNames[f.Name()], f)
33
}
34
35
return filesWithNames
0 commit comments