mirror of
https://github.com/nasa/openmct.git
synced 2025-06-21 08:39:59 +00:00
Fixing jslint errors
This commit is contained in:
@ -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);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user