summaryrefslogtreecommitdiff
path: root/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'client.js')
-rwxr-xr-xclient.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/client.js b/client.js
index 51a5d33..606a331 100755
--- a/client.js
+++ b/client.js
@@ -171,10 +171,8 @@ function sendfile(fname,retries){
res.on("end",function(){
if(res.statusCode!=200){
if(retries>0)sendfile(fname,retries-1);
- else {
- dialog.warn("Could not upload image! Are your credentials still okay?\n\n"+body);
- return;
- }
+ else dialog.warn("Could not upload image! Are your credentials still okay?\n\n"+body);
+ return;
}
console.log("Successful upload");
toClipboard.sync(body.trim());