Skip to content

Commit

Permalink
Merge pull request #37 from archi-Doc/dev
Browse files Browse the repository at this point in the history
.
  • Loading branch information
archi-Doc authored Sep 18, 2024
2 parents 95a4aea + cde8c41 commit 2101821
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion CrossChannelGenerator/Arc.Visceral/ScopingStringBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,17 @@ public void AppendNamespace(string @namespace)
}
}

public IScope ScopeNamespace(string @namespace) => this.ScopeBrace($"namespace {@namespace}");
public IScope ScopeNamespace(string @namespace)
{
if (!string.IsNullOrEmpty(@namespace))
{
return this.ScopeBrace($"namespace {@namespace}");
}
else
{
return this.ScopeBrace(string.Empty);
}
}

public IScope ScopeBrace(string preface)
{
Expand Down

0 comments on commit 2101821

Please sign in to comment.