prevent unhashable panic

This commit is contained in:
2023-03-14 00:07:18 +00:00
parent cf25d392be
commit 406eafb8a4
7 changed files with 53 additions and 23 deletions

View File

@@ -22,6 +22,9 @@ func getValuesFromLetter(str string, splitstr string, index int, codelines []UNP
if worked {
arguments = append(arguments, resp)
temp = []string{}
if i == len(commasplit)-1 {
return arguments, true, ArErr{}
}
} else if i == len(commasplit)-1 {
return nil, false, ArErr{"Syntax Error", "invalid argument", codelines[index].line, codelines[index].path, codelines[index].realcode, true}
}