File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
src/main/java/net/seesharpsoft/intellij/plugins/csv/formatter Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments