Skip to content

Commit e996525

Browse files
authored
Remove boolean unions (#1036)
1 parent d37cf8d commit e996525

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/Ros.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ export default class Ros extends EventEmitter<
702702
}
703703
} else {
704704
// lookup the name
705-
let sub: boolean | rosapi.TypeDef = false;
705+
let sub: rosapi.TypeDef | undefined = undefined;
706706
for (const hint of hints) {
707707
if (hint.type === fieldType) {
708708
sub = hint;

src/core/Topic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default class Topic<T> extends EventEmitter<{
2626
unsubscribe: undefined;
2727
unadvertise: undefined;
2828
}> {
29-
waitForReconnect: boolean | undefined = undefined;
29+
waitForReconnect = false;
3030
reconnectFunc: (() => void) | undefined = undefined;
3131
isAdvertised = false;
3232
ros: Ros;

0 commit comments

Comments
 (0)