mirror of
https://github.com/mas-cli/mas
synced 2024-11-26 05:20:18 +00:00
Remove unnessary switch labels in MASError
This commit is contained in:
parent
142b62ad82
commit
2ee32843cf
1 changed files with 4 additions and 3 deletions
|
@ -24,7 +24,7 @@ enum MASError: Error, CustomStringConvertible {
|
||||||
case .notSignedIn:
|
case .notSignedIn:
|
||||||
return "Not signed in"
|
return "Not signed in"
|
||||||
|
|
||||||
case .signInFailed(error: let error):
|
case .signInFailed(let error):
|
||||||
if let error = error {
|
if let error = error {
|
||||||
return "Sign in failed: \(error.localizedDescription)"
|
return "Sign in failed: \(error.localizedDescription)"
|
||||||
} else {
|
} else {
|
||||||
|
@ -34,13 +34,14 @@ enum MASError: Error, CustomStringConvertible {
|
||||||
case .alreadySignedIn:
|
case .alreadySignedIn:
|
||||||
return "Already signed in"
|
return "Already signed in"
|
||||||
|
|
||||||
case .purchaseFailed(error: let error):
|
case .purchaseFailed(let error):
|
||||||
if let error = error {
|
if let error = error {
|
||||||
return "Download request failed: \(error.localizedDescription)"
|
return "Download request failed: \(error.localizedDescription)"
|
||||||
} else {
|
} else {
|
||||||
return "Download request failed"
|
return "Download request failed"
|
||||||
}
|
}
|
||||||
case .downloadFailed(error: let error):
|
|
||||||
|
case .downloadFailed(let error):
|
||||||
if let error = error {
|
if let error = error {
|
||||||
return "Download failed: \(error.localizedDescription)"
|
return "Download failed: \(error.localizedDescription)"
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue