Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Schnabel <[email protected]>
  • Loading branch information
gimantha and Shadow-Devil authored Oct 2, 2024
1 parent 12e70f6 commit ca8c192
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ public String toString() {
outputBuilder.append(underlineFirstHalf).append(NEW_LINE)
.append(startLineResult.line, maxLength, startLineResult.line.length()).append(NEW_LINE)
.append(underlineSecondHalf).append(NEW_LINE);
}
else {

} else {
outputBuilder
.append(getUnderline(startLineResult.diagnosticStart, startLineResult.diagnosticLength))
.append(NEW_LINE)
Expand Down Expand Up @@ -286,7 +284,7 @@ private static String replaceTabs(String line, int end) {

/**
* Represents a result of truncating a line.
*
* @param needsWrap If the result needs to be wrapped
* @param line The truncated line
* @param diagnosticStart The start of the diagnostic in the truncated line
* @param diagnosticLength The length of the diagnostic in the truncated line
Expand Down

0 comments on commit ca8c192

Please sign in to comment.