exists -> ok

This commit is contained in:
Slavi Pantaleev
2022-08-25 21:44:06 +03:00
parent a093de51c4
commit 8507af670a
2 changed files with 4 additions and 4 deletions

View File

@@ -39,8 +39,8 @@ func (s settings) Allowed(noowner bool, userID id.UserID) bool {
func (s settings) Get(key string) string {
value := s[strings.ToLower(strings.TrimSpace(key))]
sanitizer, exists := sanitizers[key]
if exists {
sanitizer, ok := sanitizers[key]
if ok {
return sanitizer(value)
}
return value