Skip to content

Commit

Permalink
Replacing tabs with 4-spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
migueltt committed Aug 10, 2017
1 parent 7d83534 commit f177c97
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions JSONObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,15 @@ public JSONObject(JSONTokener x) throws JSONException {

if (key != null) {
// Check if key exists
if (this.opt(key) != null) {
// back one token to point to the last key character
x.back();
if (this.opt(key) != null) {
// back one token to point to the last key character
x.back();
throw x.syntaxError("Duplicate key \"" + key + "\"");
}
}
// Only add value if non-null
Object value = x.nextValue();
if (value!=null) {
this.put(key, value);
this.put(key, value);
}
}

Expand Down

0 comments on commit f177c97

Please sign in to comment.