Skip to content

Commit 6a342dd

Browse files
committed
style(): fix jscs complaints
1 parent 38bb6b8 commit 6a342dd

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Diff for: app/templates/server/api/user(auth)/user.model(mongooseModels).js

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ var validatePresenceOf = function(value) {
103103
UserSchema
104104
.pre('save', function(next) {
105105
// Handle new/update passwords
106-
if(!this.isModified('password')) {
106+
if (!this.isModified('password')) {
107107
return next();
108108
}
109109

@@ -171,7 +171,7 @@ UserSchema.methods = {
171171
if (typeof arguments[0] === 'function') {
172172
callback = arguments[0];
173173
byteSize = defaultByteSize;
174-
} else if(typeof arguments[1] === 'function') {
174+
} else if (typeof arguments[1] === 'function') {
175175
callback = arguments[1];
176176
}
177177

Diff for: app/templates/server/auth(auth)/facebook(facebookAuth)/passport.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function setup(User, config) {
1717
'facebook.id': profile.id
1818
})
1919
.then(user => {
20-
if(user) {
20+
if (user) {
2121
return done(null, user);
2222
}
2323

Diff for: app/templates/server/auth(auth)/google(googleAuth)/passport.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function setup(User, config) {
1313
'google.id': profile.id
1414
})
1515
.then(user => {
16-
if(user) {
16+
if (user) {
1717
return done(null, user);
1818
}
1919

Diff for: app/templates/server/auth(auth)/twitter(twitterAuth)/passport.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function setup(User, config) {
1313
'twitter.id_str': profile.id
1414
})
1515
.then(user => {
16-
if(user) {
16+
if (user) {
1717
return done(null, user);
1818
}
1919

0 commit comments

Comments
 (0)