mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-27 04:07:08 +00:00
remove unused & fix wording
This commit is contained in:
parent
87036ec719
commit
715ff0eb7f
3 changed files with 3 additions and 7 deletions
|
@ -65,7 +65,3 @@ func ValidateOneOf(value any, allowed []any, name string) []string {
|
|||
}
|
||||
return []string{fmt.Sprintf("Value %v is not contained in allowed values %v", value, allowed)}
|
||||
}
|
||||
|
||||
func ValidateSuffix(str, suffix string) bool {
|
||||
return strings.HasSuffix(str, suffix)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue