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

Ternary statement formatting #29

Closed
kend77 opened this issue May 11, 2019 · 3 comments
Closed

Ternary statement formatting #29

kend77 opened this issue May 11, 2019 · 3 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@kend77
Copy link

kend77 commented May 11, 2019

When dealing with ternary expressions, formatting does not look like the same code in JS.

Expected:

String someString = 'Yes'
someFuntionCall(
     someString == 'Yes'
          ? SomeClass.someMethod()
          : SomeOtherClass.someOtherMethod()
);

Actual:

String someString = 'Yes';
someFuntionCall(
	someString ==
	'Yes' ? SomeClass.someMethod() : SomeOtherClass.someOtherMethod()
);
@dangmai
Copy link
Owner

dangmai commented May 12, 2019

Thank you for the bug report, I agree with your expected output formatting and will hopefully have a fix for this soon

@dangmai dangmai added bug Something isn't working good first issue Good for newcomers labels May 12, 2019
@dangmai
Copy link
Owner

dangmai commented May 28, 2019

This has been fixed in master and will be included in the next release.

Thanks again for the bug report!

@dangmai
Copy link
Owner

dangmai commented Jun 3, 2019

FYI I have released the new version that contains the fix for this.

dangmai pushed a commit that referenced this issue Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants