Skip to content

Commit

Permalink
Return less "unkown" execution status
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Feb 27, 2019
1 parent b25d5f7 commit 1c3ae33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel-traverse/src/path/introspection.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ export function _guessExecutionStatusRelativeTo(
}

if (
isExecutionUncertainInList(paths.this, commonIndex.this) ||
isExecutionUncertainInList(paths.target, commonIndex.target)
isExecutionUncertainInList(paths.this, commonIndex.this - 1) ||
isExecutionUncertainInList(paths.target, commonIndex.target - 1)
) {
return "unknown";
}
Expand Down

0 comments on commit 1c3ae33

Please sign in to comment.