diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/actions.js | 10 |
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 | ||
51 | function 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 | |||
61 | function login(server) { | 51 | function 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 | ||