From 5a4bec6b007ef8ee09ea24375caa3c09744dd023 Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Thu, 26 Apr 2018 13:48:56 +0700 Subject: no-useless-return (#94) --- public/js/dashboard.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'public/js') diff --git a/public/js/dashboard.js b/public/js/dashboard.js index 2715f47..9b1d8ca 100644 --- a/public/js/dashboard.js +++ b/public/js/dashboard.js @@ -245,7 +245,6 @@ panel.deleteFile = function(id){ swal("Deleted!", "The file has been deleted.", "success"); panel.getUploads(); - return; }) .catch(function (error) { @@ -367,7 +366,6 @@ panel.renameAlbum = function(id){ swal("Success!", "Your album was renamed to: " + inputValue, "success"); panel.getAlbumsSidebar(); panel.getAlbums(); - return; }) .catch(function (error) { @@ -404,7 +402,6 @@ panel.deleteAlbum = function(id){ swal("Deleted!", "Your album has been deleted.", "success"); panel.getAlbumsSidebar(); panel.getAlbums(); - return; }) .catch(function (error) { @@ -432,7 +429,6 @@ panel.submitAlbum = function(){ swal("Woohoo!", "Album was added successfully", "success"); panel.getAlbumsSidebar(); panel.getAlbums(); - return; }) .catch(function (error) { -- cgit v1.2.3