Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
letFunny committed Aug 30, 2024
1 parent c6f925d commit 9e2ecfb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/slicer/slicer.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,7 @@ func Run(options *RunOptions) error {
pathInfo.Kind == setup.GeneratePath {
continue
}
if _, ok := relPaths[relPath]; !ok {
relPaths[relPath] = []*setup.Slice{slice}
} else {
relPaths[relPath] = append(relPaths[relPath], slice)
}
relPaths[relPath] = append(relPaths[relPath], slice)
}
}
for relPath, slices := range relPaths {
Expand Down

0 comments on commit 9e2ecfb

Please sign in to comment.