Skip to content

Commit

Permalink
Only work with directories not files resolve #4 and #5
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Feb 9, 2018
1 parent 289104a commit 686fc4f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions parsers/guesser.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,7 @@ func Process() {
if info, err := os.Stat(DirPath); err == nil && info.IsDir() {
fileResults = walkDirectory(DirPath, [][]LicenseMatch{})
} else {
content := string(readFile(DirPath))
guessLicenses := guessLicense(content, deepGuess, loadDatabase())
fmt.Println("Argument " + DirPath + " should be a directory not a file")
}

s.Stop()
Expand Down

0 comments on commit 686fc4f

Please sign in to comment.