Compare commits
No commits in common. "eeabb76fdb571f6ce693c7e993f854a5ed5fb6e7" and "fb66f654e7d534beb58a51f77d1bfd4ed414b34e" have entirely different histories.
eeabb76fdb
...
fb66f654e7
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue