Added another slice length check

This commit is contained in:
Seednode 2022-09-17 13:12:22 -05:00
parent 094bb13cf3
commit f332fb24a8
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ func getNextFile(path string) (string, error) {
split := re.FindAllStringSubmatch(path, -1) split := re.FindAllStringSubmatch(path, -1)
if len(split[0]) < 3 { if len(split) < 1 || len(split[0]) < 3 {
return "", nil return "", nil
} }