Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
vplauzon committed Jan 4, 2024
1 parent d44a9dc commit e2a9484
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions code/DeltaKustoLib/CommandModel/CommandBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,13 @@ private static IEnumerable<string> SplitCommandScripts(string script)
{
var lines = script
.Split('\n')
.Select(l => l.Trim())
// Remove comment lines
.Where(l => !l.StartsWith("//"));
.Where(l => !l.Trim().StartsWith("//"));
var currentCommandLines = new List<string>();

foreach (var line in lines)
{
if (line == string.Empty)
if (line.Trim() == string.Empty)
{
if (currentCommandLines.Any())
{
Expand Down
2 changes: 1 addition & 1 deletion code/delta-kusto/delta-kusto.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<TargetFramework>net7.0</TargetFramework>
<RootNamespace>delta_kusto</RootNamespace>
<Nullable>enable</Nullable>
<Version>0.15.1</Version>
<Version>0.15.2</Version>
<!-- Avoid having each library being trimmed (instead of only opt-in ones) -->
<TrimMode>partial</TrimMode>
<!-- Important to avoid the trimming warning hell ; since we automate-test everything, we do not need static analysis -->
Expand Down

0 comments on commit e2a9484

Please sign in to comment.