Skip to content

Commit

Permalink
- fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
udlose committed Aug 29, 2023
1 parent 7ac0985 commit 2d691cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/LitJson/JsonMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,10 @@ private static object ReadValue (Type inst_type, JsonReader reader)
}

// Maybe it's an enum
#if NETSTANDARD1_5
#if NETSTANDARD1_5
if (value_type.IsEnum())
return Enum.ToObject (value_type, reader.Value);
#else
#else
if (value_type.IsEnum)
return Enum.ToObject (value_type, reader.Value);
#endif
Expand Down Expand Up @@ -559,7 +559,7 @@ private static void RegisterBaseExporters ()
// This method is only called from the static initializer,
// so there is no need to explicitly lock any static members here
base_exporters_table[typeof (byte)] =
delegate (object obj, JsonWriter writer) {
delegate (object obj, JsonWriter writer) {
writer.Write (Convert.ToInt32 ((byte) obj));
};

Expand Down

0 comments on commit 2d691cd

Please sign in to comment.