]> cat aescling's git repositories - mastodon.git/commit
jslint: fix jslint warnings (#1704)
authorKoala Yeung <koalay@gmail.com>
Sat, 15 Apr 2017 00:57:26 +0000 (08:57 +0800)
committerEugen <eugen@zeonfederated.com>
Sat, 15 Apr 2017 00:57:26 +0000 (02:57 +0200)
commit08059ddda96496e5f3e257edbbecab43404faee7
tree1725b7a96df6c67b4547c61afac49bbb8e29ec4c
parenta3aa9381c4651b024c90cb0dd8a86346c8af2146
jslint: fix jslint warnings (#1704)

* jslint: remove trailing space

* jslint: fix no-nested-ternary issue

Follow the jslint [no-nested-ternary](http://eslint.org/docs/rules/no-nested-ternary)
rule. Rewritten ternary with if-then.
app/assets/javascripts/components/components/status_action_bar.jsx
app/assets/javascripts/components/features/compose/components/compose_form.jsx
app/assets/javascripts/components/features/status/components/action_bar.jsx