From 28afd8f56318f98930ccdd76ae58b90a639f1fce Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sat, 8 Jul 2017 09:34:55 +0200 Subject: [PATCH] Remove unneeded $q. --- src/accounts/account.controller.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/accounts/account.controller.js b/src/accounts/account.controller.js index b7ddf96..9ef9e2d 100644 --- a/src/accounts/account.controller.js +++ b/src/accounts/account.controller.js @@ -1,7 +1,7 @@ var accountFormTmpl = require('./account.form.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; /* @@ -67,8 +67,6 @@ module.exports = function(Account, Notification, $log, $q, $modal) { Notification.error( 'Error while saving account: ' + result.message ); - - return $q.reject(result); }); };