Skip to content

Commit

Permalink
remove preliminary null check (#9635)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimprice authored Aug 10, 2023
1 parent 711c932 commit f78ffd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion multiplayer/src/services/simHost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export async function simulateAsync(
driver.run(js, runOptions);
}
if (msg.command == "setstate") {
if (msg.stateKey && msg.stateValue != null) {
if (msg.stateKey) {
setStoredState(runOpts, msg.stateKey, msg.stateValue);
}
}
Expand Down
2 changes: 1 addition & 1 deletion pxtrunner/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ namespace pxt.runner {
simDriver.run(js, runOptions);
}
if (msg.command == "setstate") {
if (msg.stateKey && msg.stateValue != null) {
if (msg.stateKey) {
setStoredState(simOptions.id, msg.stateKey, msg.stateValue)
}
}
Expand Down

0 comments on commit f78ffd1

Please sign in to comment.