Revert "small fix"

This reverts commit f3401e72c2.
This commit is contained in:
Tyler Renelle 2014-09-30 21:42:48 -06:00
parent 0fa7277cf0
commit e21230f8c2

View file

@ -69,7 +69,7 @@ ChallengeSchema.methods.isOutdated = function(newData) {
* @return nothing, user is modified directly. REMEMBER to save the user!
*/
ChallengeSchema.methods.syncToUser = function(user, cb) {
if (!user) return cb();
if (!user) return;
var self = this;
self.shortName = self.shortName || self.name;