Skip to content

Commit

Permalink
Fix style for else statement (kodecocodes#244)
Browse files Browse the repository at this point in the history
Even though the else statement being on a new line is technically “Not Preferred” the styling for the else statement is not what is being demonstrated, and so it should not differ between the “Preferred” and “Not Preferred” examples.
  • Loading branch information
jawwad authored and rayfix committed Dec 3, 2016
1 parent 0c0fdc9 commit c714337
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -822,12 +822,10 @@ func computeFFT(context: Context?, inputData: InputData?) throws -> Frequencies
// use context and input to compute the frequencies

return frequencies
}
else {
} else {
throw FFTError.noInputData
}
}
else {
} else {
throw FFTError.noContext
}
}
Expand All @@ -851,16 +849,13 @@ if let number1 = number1 {
if let number2 = number2 {
if let number3 = number3 {
// do something with numbers
}
else {
} else {
fatalError("impossible")
}
}
else {
} else {
fatalError("impossible")
}
}
else {
} else {
fatalError("impossible")
}
```
Expand Down

0 comments on commit c714337

Please sign in to comment.