Skip to content

Commit 038fcdd

Browse files
committed
[INTERNAL] code cleanup
1 parent 8aef05e commit 038fcdd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main/java/net/seesharpsoft/intellij/plugins/csv/formatter/CsvFormatHelper.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ public final class CsvFormatHelper {
9898
);
9999
} catch (IOException e) {
100100
e.printStackTrace();
101-
throw new RuntimeException(e);
102101
}
103102

104103
WIDTH_DOUBLE_CHARCODE_RANGES = convertRangeTextToRangeArray(wideLines);
@@ -110,11 +109,7 @@ private static int[][] convertRangeTextToRangeArray(List<String> wideLines) {
110109
for (int i = 0; i < targetArray.length; ++i) {
111110
String[] split = wideLines.get(i).split("\\.\\.");
112111
targetArray[i][0] = Integer.parseInt(split[0], HEX_RADIX);
113-
if (split.length == 1) {
114-
targetArray[i][1] = targetArray[i][0];
115-
} else {
116-
targetArray[i][1] = Integer.parseInt(split[1], HEX_RADIX);
117-
}
112+
targetArray[i][1] = split.length == 1 ? targetArray[i][0] : Integer.parseInt(split[1], HEX_RADIX);
118113
}
119114
return targetArray;
120115
}

0 commit comments

Comments
 (0)