1
0
Fork 0
mirror of https://github.com/on4kjm/FLEcli.git synced 2025-01-19 05:01:18 +01:00

Clean some lint advise

This commit is contained in:
Jean-Marc MEESSEN 2020-06-07 22:11:15 +02:00
parent c8fe301c85
commit ee565dd24c

View file

@ -35,9 +35,8 @@ func ValidateCall(sign string) (call, errorMsg string) {
case 1: case 1:
if validCallRegexp.MatchString(sign) { if validCallRegexp.MatchString(sign) {
return sign, "" return sign, ""
} else {
return wrongSign, "Invalid call"
} }
return wrongSign, "Invalid call"
case 2: case 2:
// some ambiguity here we need to resolve, could be a prefix or a suffix // some ambiguity here we need to resolve, could be a prefix or a suffix
if validCallRegexp.MatchString(sp[0]) { if validCallRegexp.MatchString(sp[0]) {