Skip to content

Commit

Permalink
.out on nonexistant should not fail
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffhendrey committed Sep 18, 2024
1 parent 9ad273b commit d025712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StatedREPL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default class StatedREPL {
}

private tookOverIO(methodName:string, result:any) {
return methodName === 'open' || result.__tailed
return methodName === 'open' || result?.__tailed
}
}

Expand Down

0 comments on commit d025712

Please sign in to comment.