Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indention bug: return statement with ternary operator #60

Closed
ckruse opened this issue Nov 3, 2014 · 0 comments · Fixed by #76
Closed

Indention bug: return statement with ternary operator #60

ckruse opened this issue Nov 3, 2014 · 0 comments · Fixed by #76
Labels

Comments

@ckruse
Copy link

ckruse commented Nov 3, 2014

Hi,

a ternary operator is a common thing in return statements, and often they contain line breaks. A ternary operator should therefore be indented:

instead of this (current behaviour):

return order!.deliver ?
OrderViewTableDeliveryCells.lastCellIndex.rawValue :
OrderViewTableTakeAwayCells.LastCellIndex.rawValue

I'd like to get this:

return order!.deliver ?
  OrderViewTableDeliveryCells.lastCellIndex.rawValue :
  OrderViewTableTakeAwayCells.LastCellIndex.rawValue
@ap4y ap4y added the bug label Nov 4, 2014
@ckruse ckruse mentioned this issue Nov 7, 2014
@ap4y ap4y mentioned this issue Jan 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants