Skip to content

Commit

Permalink
empty goto fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NamrathaG committed Jun 25, 2024
1 parent 3bb2588 commit 31f7dad
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Source/Concurrency/InductiveSequentialization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,14 @@ protected List<Declaration> GeneratePartitionChecker(Action action)
}

string checkerName = civlTypeChecker.AddNamePrefix($"PartitionChecker_{action.Name}");
List<Block> blocks = new List<Block>(checkerBlocks.Count + 1)
List<Block> blocks = new List<Block>(checkerBlocks.Count + 1);
if(checkerBlocks.Count != 0)
{
BlockHelper.Block(checkerName, cmds, checkerBlocks)
};
blocks.Add(BlockHelper.Block(checkerName, cmds, checkerBlocks));
}
else{
blocks.Add(BlockHelper.Block(checkerName, cmds));
}
blocks.AddRange(checkerBlocks);

Procedure proc = DeclHelper.Procedure(
Expand Down

0 comments on commit 31f7dad

Please sign in to comment.