Skip to content

Commit

Permalink
Removed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
roryprimrose committed Mar 16, 2020
1 parent 81c9671 commit 63728e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ModelBuilder/BuildActions/CreationRuleBuildAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,6 @@ public object Populate(IExecuteStrategy executeStrategy, object instance)
return null;
}

var matchFound = isMatch(rule);

if (matchFound == false)
{
return null;
}

return new BuildCapability
{
SupportsCreate = true,
Expand Down
4 changes: 4 additions & 0 deletions ModelBuilder/Data/TestData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,20 @@ private static List<Location> ParseLocations(string locations)
{
index++;

#if DEBUG
try
{
#endif
var location = Location.Parse(line);

parsedLines.Add(location);
#if DEBUG
}
catch (IndexOutOfRangeException e)
{
throw new InvalidOperationException("Failed to process line '" + line + "' at index" + index, e);
}
#endif
}

return parsedLines;
Expand Down

0 comments on commit 63728e9

Please sign in to comment.