Skip to content

Commit c72a251

Browse files
committed
2020-08-28T01:41
1 parent 1a4fce2 commit c72a251

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/shimizukenta/jsonhub/JsonHubJsonParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ public AbstractJsonHub parse(CharSequence cs) {
3434
String s = cs.toString();
3535

3636
if ( s.trim().isEmpty() ) {
37-
new JsonHubParseException("JSON is empty");
37+
throw new JsonHubParseException("JSON is empty");
3838
}
3939

40-
return fromJson(cs.toString());
40+
return fromJson(s);
4141
}
4242
catch ( JsonHubIndexOutOfBoundsException | JsonHubNumberFormatException e ) {
4343
throw new JsonHubParseException(e);

0 commit comments

Comments
 (0)