Answer the question
In order to leave comments, you need to log in
How to make this function not so scary?
func dataValid(result []string) bool {
if v.IsLogin(result[0]) == true {
if isLoginAvailable(result[0]) == true {
if v.IsEmail(result[1]) == true {
if isEmailAvailable(result[1]) == true {
return v.IsPass(result[2])
} else {
return false
}
} else {
return false
}
} else {
return false
}
} else {
return false
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question