Fixing jslint errors

This commit is contained in:
Henry
2015-12-01 22:34:26 -08:00
parent 26cf9c14f4
commit 8df27a1c05

View File

@ -82,7 +82,7 @@ define(
*/ */
function rejectIfFalsey(value, $q){ function rejectIfFalsey(value, $q){
if (!value){ if (!value){
return $q.reject("Error persisting object") return $q.reject("Error persisting object");
} else { } else {
return value; return value;
} }
@ -133,7 +133,9 @@ define(
domainObject.getModel() domainObject.getModel()
]).then(function(result){ ]).then(function(result){
return rejectIfFalsey(result, self.$q); return rejectIfFalsey(result, self.$q);
/*jshint es5: true */
}).catch(function(error){ }).catch(function(error){
/*jshint es5: false */
return notifyOnError(error, domainObject, self.alertService, self.$q); return notifyOnError(error, domainObject, self.alertService, self.$q);
}); });
}; };