Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardottt committed May 7, 2021
1 parent 09caa4d commit 448051f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scilla.go
Original file line number Diff line number Diff line change
Expand Up @@ -1364,10 +1364,12 @@ func readDictDirs(inputFile string) []string {
var dir = ""
for scanner.Scan() {
dir = scanner.Text()
if string(dir[len(dir)-1:]) == "/" {
dir = dir[:len(dir)-1]
if len(dir) > 0 {
if string(dir[len(dir)-1:]) == "/" {
dir = dir[:len(dir)-1]
}
text = append(text, dir)
}
text = append(text, dir)
}
file.Close()
text = removeDuplicateValues(text)
Expand Down

0 comments on commit 448051f

Please sign in to comment.