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?) { init(id: String?) {
self = { self = {
guard let id = id else { return .system } guard let id = id else { return .system }
switch id { if id == Language.system.id {
case Language.system.id:
return .system return .system
case Language.english.id: } else if id == Language.english.id {
return .english return .english
case Language.simplifiedChinese.id: } else if id == Language.simplifiedChinese.id {
return .simplifiedChinese return .simplifiedChinese
case Language.spanish.id: } else if id == Language.spanish.id {
return .spanish return .spanish
default: } else {
return .system return .system
} }
}() }()

Loading…
Cancel
Save