Skip to content

Commit

Permalink
Update SimpleJSON.cs
Browse files Browse the repository at this point in the history
Replaced "s is null" with "s == null" for backward compatibility.
  • Loading branch information
Bunny83 authored Feb 23, 2021
1 parent b0dd3c0 commit ac13597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimpleJSON.cs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public virtual JSONObject AsObject

public static implicit operator JSONNode(string s)
{
return (s is null) ? (JSONNode) JSONNull.CreateOrGet() : new JSONString(s);
return (s == null) ? (JSONNode) JSONNull.CreateOrGet() : new JSONString(s);
}
public static implicit operator string(JSONNode d)
{
Expand Down

0 comments on commit ac13597

Please sign in to comment.