Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions packages/react-devtools-extensions/src/astUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ function checkNodeLocation(
): boolean {
const {start, end} = path.node.loc;

if (line < start.line || line > end.line) {
return false;
}

if (line !== start.line) {
if (line !== start.line || line > end.line) {
return false;
}

Expand Down