aboutsummaryrefslogtreecommitdiffhomepage
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/actions.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/cli/actions.js b/cli/actions.js
index a5612b8..043909d 100644
--- a/cli/actions.js
+++ b/cli/actions.js
@@ -48,16 +48,6 @@ function collectFiles(filesOrFolders) {
48 return tmp; 48 return tmp;
49} 49}
50 50
51function checkResponse(error, result) {
52 if (error && error.status === 401) {
53 console.log('Login failed');
54 process.exit(1);
55 } else if (error) {
56 console.log('Error', result ? result.text : error);
57 process.exit(1);
58 }
59}
60
61function login(server) { 51function login(server) {
62 if (server[server.length-1] === '/') server = server.slice(0, -1); 52 if (server[server.length-1] === '/') server = server.slice(0, -1);
63 53