Skip to content

Commit 6922d20

Browse files
author
Michael P. Starkweather
committed
Use nameof instead of hardcoded name for TargetID
1 parent 6801047 commit 6922d20

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ModTek/AdvancedJSONMerger.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ public static class AdvancedJSONMerger
1313
public static string GetTargetID(string modEntryPath)
1414
{
1515
var merge = ModTek.ParseGameJSONFile(modEntryPath);
16-
return merge["TargetID"].ToString();
16+
return merge[nameof(MergeFile.TargetID)].ToString();
1717
}
1818

1919
public static bool IsAdvancedJSONMerge(JObject merge)
2020
{
21-
return merge["TargetID"] != null;
21+
return merge[nameof(MergeFile.TargetID)] != null;
2222
}
2323

2424
public static void ProcessInstructionsJObject(JObject target, JObject merge)

0 commit comments

Comments
 (0)