AFB.js: Tiny improvement and space fix 77/18077/1
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 20 Nov 2018 08:58:50 +0000 (09:58 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 20 Nov 2018 08:59:47 +0000 (09:59 +0100)
Change-Id: I170abe0dd1a1de3d2cc2ea7f86c746eb93e63eae
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
test/AFB.js

index aa63416..b07efc5 100644 (file)
@@ -92,7 +92,7 @@ var AFB_websocket;
                if (f) {
                        delete this.onopen;
                        delete this.onabort;
-                       f && f(this);
+                       f(this);
                }
                this.onerror && this.onerror(this);
        }
@@ -151,14 +151,14 @@ var AFB_websocket;
                switch (code) {
                case RETOK:
                        reply(this.pendings, id, ans, 0);
-                       break; 
+                       break;
                case RETERR:
                        reply(this.pendings, id, ans, 1);
-                       break; 
+                       break;
                case EVENT:
                default:
                        fire(this.awaitens, id, ans);
-                       break; 
+                       break;
                }
        }