diff options
author | Johannes Zellner <johannes@nebulon.de> | 2015-06-27 21:30:13 +0200 |
---|---|---|
committer | Johannes Zellner <johannes@nebulon.de> | 2015-06-27 21:30:13 +0200 |
commit | a46d643ec61c7519dd9d3b9faa29130b154159ce (patch) | |
tree | 10b83ac0686ea54a8b84674341919a6fe79d4970 /cli | |
parent | 751238c6886ce4a410a517d8179e1338d31fd3e4 (diff) | |
download | Surfer-a46d643ec61c7519dd9d3b9faa29130b154159ce.tar.gz Surfer-a46d643ec61c7519dd9d3b9faa29130b154159ce.tar.zst Surfer-a46d643ec61c7519dd9d3b9faa29130b154159ce.zip |
Remove unused function
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 | ||