Compare commits

..

No commits in common. "eeabb76fdb571f6ce693c7e993f854a5ed5fb6e7" and "fb66f654e7d534beb58a51f77d1bfd4ed414b34e" have entirely different histories.

View file

@ -33,7 +33,10 @@ func GenerateSecret() string {
// CheckCharRedundant verify is a character is redundant in a string
func CheckCharRedundant(source string, char string) bool { // Verify if a char is redundant
return strings.Count(source, char) > 1
if strings.Count(source, char) > 1 {
return true
}
return false
}
func parseIntBeforeSeparator(source *string, sep string) (int, error) { // return 0 & error if error, only accept positive number