diff --git a/app/assets/javascripts/repo/helpers/repo_helper.js b/app/assets/javascripts/repo/helpers/repo_helper.js index 18088034f8d..020b3c2c3d3 100644 --- a/app/assets/javascripts/repo/helpers/repo_helper.js +++ b/app/assets/javascripts/repo/helpers/repo_helper.js @@ -179,10 +179,7 @@ const RepoHelper = { Store.addFilesToDirectory(file, Store.files, newDirectory); Store.prevURL = Service.blobURLtoParentTree(Service.url); } - }).catch((e) => { - console.log(e); - RepoHelper.loadingError(); - }); + }).catch(RepoHelper.loadingError); }, setFile(data, file) {