Skip to content

Commit e4c8e90

Browse files
committed
refactor(TFClient): Fix suspicious typing of false when an undefined check works
Signed-off-by: Drew Hoener <[email protected]>
1 parent 8b5c4fb commit e4c8e90

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/tf/TFClient.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ import BaseTFClient from "./BaseTFClient.js";
1616
* A TF Client that listens to TFs from tf2_web_republisher.
1717
*/
1818
export default class TFClient extends BaseTFClient {
19-
currentGoal:
20-
| Goal<
21-
tf2_web_republisher.TFSubscriptionGoal,
22-
tf2_web_republisher.TFSubscriptionFeedback
23-
>
24-
| false = false;
25-
currentTopic: Topic<tf2_msgs.TFMessage> | false = false;
19+
currentGoal?: Goal<
20+
tf2_web_republisher.TFSubscriptionGoal,
21+
tf2_web_republisher.TFSubscriptionFeedback
22+
>;
23+
currentTopic?: Topic<tf2_msgs.TFMessage>;
2624
actionClient: ActionClient<
2725
tf2_web_republisher.TFSubscriptionGoal,
2826
tf2_web_republisher.TFSubscriptionFeedback

0 commit comments

Comments
 (0)