Skip to content

Commit

Permalink
Drop redundant calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Naatan committed Nov 7, 2024
1 parent 67c2110 commit 6c38c9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/archiver/archiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ func FilesWithCommonParent(filepaths ...string) []FileMap {
for _, path := range filepaths {
path = filepath.ToSlash(path)
fileMaps = append(fileMaps, FileMap{
Source: filepath.ToSlash(path),
Target: strings.TrimPrefix(filepath.ToSlash(strings.TrimPrefix(path, common)), "/"),
Source: path,
Target: strings.TrimPrefix(strings.TrimPrefix(path, common), "/"),
})
}
return fileMaps
Expand Down

0 comments on commit 6c38c9e

Please sign in to comment.