Skip to content

Commit b78aff4

Browse files
lib: in api.js get rid of unnecessary if check.
1 parent db8d837 commit b78aff4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/api.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ class Api {
141141

142142
// if socket is still open, then force close manually.
143143
const unsubscribe = () => {
144-
if (renderStatus) {
145-
renderStatus.close()
146-
}
144+
renderStatus.close()
147145
}
148146

149147
return unsubscribe

0 commit comments

Comments
 (0)