Skip to content

Commit

Permalink
Simplify null check
Browse files Browse the repository at this point in the history
  • Loading branch information
blowfishpro committed Aug 30, 2017
1 parent 51b6f75 commit 8179c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MMPatchLoader.cs
Expand Up @@ -586,7 +586,7 @@ private bool CheckFilesChange(UrlDir.UrlFile[] files, ConfigNode shaConfigNode)
for (int i = 0; i < files.Length; i++)
{
ConfigNode fileNode = getFileNode(shaConfigNode, files[i].url);
string fileSha = fileNode != null ? fileNode.GetValue("SHA") : null;
string fileSha = fileNode?.GetValue("SHA");

if (fileNode == null)
continue;
Expand Down

0 comments on commit 8179c44

Please sign in to comment.