Remove unneeded $q.
This commit is contained in:
parent
30549dd6d8
commit
28afd8f563
@ -1,7 +1,7 @@
|
|||||||
var accountFormTmpl = require('./account.form.tmpl.html'),
|
var accountFormTmpl = require('./account.form.tmpl.html'),
|
||||||
accountDeleteTmpl = require('./account.delete.tmpl.html');
|
accountDeleteTmpl = require('./account.delete.tmpl.html');
|
||||||
|
|
||||||
module.exports = function(Account, Notification, $log, $q, $modal) {
|
module.exports = function(Account, Notification, $log, $modal) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -67,8 +67,6 @@ module.exports = function(Account, Notification, $log, $q, $modal) {
|
|||||||
Notification.error(
|
Notification.error(
|
||||||
'Error while saving account: ' + result.message
|
'Error while saving account: ' + result.message
|
||||||
);
|
);
|
||||||
|
|
||||||
return $q.reject(result);
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user