Browse Source

blame: Remove unnecessary curly braces around single statement if

Change-Id: I8bcab44785fe08bbf3519c634e57ebfea8d3f0f9
stable-3.4
Shawn Pearce 11 years ago
parent
commit
4d840fc6db
  1. 3
      org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java

3
org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java

@ -689,9 +689,8 @@ public class BlameGenerator {
revPool.parseHeaders(parent);
if (!find(parent, n.sourcePath))
continue;
if (!(n instanceof ReverseCandidate) && idBuf.equals(n.sourceBlob)) {
if (!(n instanceof ReverseCandidate) && idBuf.equals(n.sourceBlob))
return blameEntireRegionOnParent(n, parent);
}
if (ids == null)
ids = new ObjectId[pCnt];
ids[pIdx] = idBuf.toObjectId();

Loading…
Cancel
Save