mozilla/fxa-content-server — pull request #257 by pdehaan (2014-01-15 19:21:43+00:00)
Title: Fixing a few style warnings from jscs

Fixing a few warnings from `$ grunt jscs`. Now down to 5 warnings.

```
$ grunt jscs
Running "jscs:src" (jscs) task

If statement without curly braces at app/scripts/lib/channels/fx-desktop.js :
48 | /*jshint validthis: true*/
49 | var result = event.data.content;
50 | if (! result) return;
------------^
51 |
52 | var type = event.data.type;

If statement without curly braces at app/scripts/lib/channels/fx-desktop.js :
68 | function findInitialPage() {
69 | this.send('session_status', {}, _.bind(function(err, response) {
70 | if (err) return;
--------------^
71 |
72 | if (response.data) {

Keyword `else` should not be placed on new line at app/scripts/lib/channels/fx-desktop.js :
74 | this.router.navigate('settings', { trigger: true });
75 | }
76 | else {
--------------^
77 | delete Session.email;
78 | this.router.navigate('signup', { trigger: true });

Line must be at most 160 characters at app/scripts/router.js :
26 | 'transit'
27 |],
28 |function ($, Backbone, IntroView, SignInView, SignUpView, ConfirmView, SettingsView, TosView, PpView, AgeView, BirthdayView, CreateAccountView, CannotCreateAccountView, CompleteSignUpView, ResetPasswordView, ConfirmResetPasswordView, CompleteResetPasswordView, ResetPasswordCompleteView) {
--------^
29 | var Router = Backbone.Router.extend({
30 | routes: {

If statement without curly braces at app/tests/spec/lib/channels/fx-desktop.js :
47 |
48 | afterEach(function() {
49 | if (channel) channel.teardown();
--------------^
50 | });
51 |

>> 5 code style errors found!
Warning: Task "jscs:src" failed. Use --force to continue.

Aborted due to warnings.
```