Fix warnings in latest version of Crystal

This commit is contained in:
Omar Roth
2020-04-09 12:18:09 -05:00
parent be655ee328
commit ca1185d0be
11 changed files with 119 additions and 79 deletions

View File

@@ -24,6 +24,8 @@ def translate(locale : Hash(String, JSON::Any) | Nil, translation : String, text
if !locale[translation].as_s.empty?
translation = locale[translation].as_s
end
else
raise "Invalid translation #{translation}"
end
end