Move IsReadOnly check inside if-block to avoid cascading if-else (dotnet/corefx#40446)
authorKristian Hellang <kristian@hellang.com>
Thu, 22 Aug 2019 20:06:39 +0000 (22:06 +0200)
committerStephen Toub <stoub@microsoft.com>
Thu, 22 Aug 2019 20:06:39 +0000 (16:06 -0400)
commit3b414cb8a6eeddf1f51453527a1604fcf1153a0b
treeebb5ef601b0156479e362fb24d054370cbd44f43
parentdf5e5b704525da4c28a009c05fd692ac3359fec2
Move IsReadOnly check inside if-block to avoid cascading if-else (dotnet/corefx#40446)

Commit migrated from https://github.com/dotnet/corefx/commit/988783b4568682bf306875f28ae76e90e7da92a5
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonPropertyInfoCommon.cs