]> source.dussan.org Git - nextcloud-server.git/commitdiff
Save two lines
authorThomas Tanghus <thomas@tanghus.net>
Wed, 11 Sep 2013 19:15:32 +0000 (21:15 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Wed, 11 Sep 2013 19:15:32 +0000 (21:15 +0200)
core/js/oc-dialogs.js

index 26173ffeb698e5848d1ee2a09fec64e456abf3fa..db8cb5d8cf9ff11756f4cb9761ddf63d11b528d1 100644 (file)
@@ -142,9 +142,7 @@ var OCdialogs = {
                .fail(function(status, error) {
                        // If the method is called while navigating away
                        // from the page, it is probably not needed ;)
-                       if(status === 0) {
-                               return;
-                       } else {
+                       if(status !== 0) {
                                alert(t('core', 'Error loading file picker template: {error}', {error: error}));
                        }
                });