aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-11-20 09:58:50 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2018-11-20 09:59:47 +0100
commit153a7c9c44ac84f32a0869ed14e4f08563e6d97c (patch)
treeb816110c8932bd3857ef97219f4465e844caf0e9 /test
parenteca8f3dd9eb5bba9a5e74fecee74e0d10bb4dcb4 (diff)
AFB.js: Tiny improvement and space fix
Change-Id: I170abe0dd1a1de3d2cc2ea7f86c746eb93e63eae Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'test')
-rw-r--r--test/AFB.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/AFB.js b/test/AFB.js
index aa634168..b07efc5e 100644
--- a/test/AFB.js
+++ b/test/AFB.js
@@ -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;
}
}