Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 1811bf8

Browse files
committed
Removed unnecessary Sum() call
1 parent aaf7fa8 commit 1811bf8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/ServiceStack.OrmLite.Tests/SqlServerProviderTests.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ WHILE @i < @Times
147147
db.ExecuteSql("IF OBJECT_ID('DummyColumn') IS NOT NULL DROP PROC DummyColumn");
148148
db.ExecuteSql(sql);
149149

150-
var expected = 0;
151-
10.Times(i => expected += i);
152-
150+
// This produces a compiler error
153151
var results = db.SqlList<string>("EXEC DummyColumn @Times", new { Times = 10 });
154152
results.PrintDump();
155153
Assert.That(results.Count, Is.EqualTo(10));
@@ -188,4 +186,4 @@ SELECT @Times AS Id
188186

189187

190188
}
191-
}
189+
}

0 commit comments

Comments
 (0)