Fix build for Travis

pull/275/head
Hwee-Boon Yar 7 years ago
parent 721268e970
commit 678a7872c9
  1. 11
      Trust/Settings/Types/Language.swift

@ -39,16 +39,15 @@ enum Language {
init(id: String?) {
self = {
guard let id = id else { return .system }
switch id {
case Language.system.id:
if id == Language.system.id {
return .system
case Language.english.id:
} else if id == Language.english.id {
return .english
case Language.simplifiedChinese.id:
} else if id == Language.simplifiedChinese.id {
return .simplifiedChinese
case Language.spanish.id:
} else if id == Language.spanish.id {
return .spanish
default:
} else {
return .system
}
}()

Loading…
Cancel
Save