Skip to content

Commit

Permalink
Use inline variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
blowfishpro committed Aug 29, 2017
1 parent 55fc4e6 commit bf640f4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions MMPatchLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -732,10 +732,8 @@ private void LoadCache()

// And then load all the cached configs
ConfigNode cache = ConfigNode.Load(cachePath);

int patchedNodeCount;

if (cache.HasValue("patchedNodeCount") && int.TryParse(cache.GetValue("patchedNodeCount"), out patchedNodeCount))

if (cache.HasValue("patchedNodeCount") && int.TryParse(cache.GetValue("patchedNodeCount"), out int patchedNodeCount))
progress.PatchedNodeCount = patchedNodeCount;

// Create the fake file where we load the physic config cache
Expand Down

0 comments on commit bf640f4

Please sign in to comment.