Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <[email protected]>
  • Loading branch information
wagoodman committed Feb 15, 2022
1 parent e66674d commit 3452bcd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions syft/file/all_regular_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

func allRegularFiles(resolver source.FileResolver) (locations []source.Location) {
for location := range resolver.AllLocations() {

resolvedLocations, err := resolver.FilesByPath(location.RealPath)
if err != nil {
log.Warnf("unable to resolve %+v: %+v", location, err)
Expand All @@ -26,7 +25,6 @@ func allRegularFiles(resolver source.FileResolver) (locations []source.Location)
}
locations = append(locations, resolvedLocation)
}

}
return locations
}
1 change: 0 additions & 1 deletion syft/source/directory_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ func (r directoryResolver) FilesByPath(userPaths ...string) ([]Location, error)

if runtime.GOOS == WindowsOS {
userStrPath = windowsToPosix(userStrPath)
evaluatedPath = windowsToPosix(evaluatedPath)
}

exists, ref, err := r.fileTree.File(file.Path(userStrPath), filetree.FollowBasenameLinks)
Expand Down

0 comments on commit 3452bcd

Please sign in to comment.