Remove unneeded $q.

This commit is contained in:
Alexis Lahouze 2017-07-08 09:34:55 +02:00
parent 30549dd6d8
commit 28afd8f563

View File

@ -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);
}); });
}; };