Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Powells.CouponCode/CouponCodeBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public CouponCodeBuilder()
/// </returns>
public string Generate(Options opts)
{
var parts = new List<string>();
List<string> parts;

// populate the bad words list with this delegate if it was set;
if (this.SetBadWordsList != null)
Expand All @@ -158,6 +158,8 @@ public string Generate(Options opts)
// generate parts and combine
do
{
parts = new List<string>();

for (var i = 0; i < opts.Parts; i++)
{
var sb = new StringBuilder();
Expand Down