mirror of
https://github.com/nasa/openmct.git
synced 2025-02-20 17:33:23 +00:00
Fixing jslint errors
This commit is contained in:
parent
26cf9c14f4
commit
8df27a1c05
@ -82,7 +82,7 @@ define(
|
||||
*/
|
||||
function rejectIfFalsey(value, $q){
|
||||
if (!value){
|
||||
return $q.reject("Error persisting object")
|
||||
return $q.reject("Error persisting object");
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
@ -133,7 +133,9 @@ define(
|
||||
domainObject.getModel()
|
||||
]).then(function(result){
|
||||
return rejectIfFalsey(result, self.$q);
|
||||
/*jshint es5: true */
|
||||
}).catch(function(error){
|
||||
/*jshint es5: false */
|
||||
return notifyOnError(error, domainObject, self.alertService, self.$q);
|
||||
});
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user