Skip to content

Commit

Permalink
Improvement over previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Jul 2, 2024
1 parent 08c3536 commit 0f935a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/codetracker/BlockTrackerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ private History.HistoryInfo<Block> blameReturn(Block startBlock) {
Collections.reverse(history);
for (History.HistoryInfo<Block> historyInfo : history) {
for (Change change : historyInfo.getChangeList()) {
if (startBlock.isClosingCurlyBracket()) {
if (startBlock.isClosingCurlyBracket() && startBlock.getComposite() instanceof CompositeStatementObject) {
if (change instanceof Introduced) {
return historyInfo;
}
Expand Down

0 comments on commit 0f935a1

Please sign in to comment.