Skip to content

Commit 469b1ce

Browse files
committed
Refactor.
1 parent 5354a33 commit 469b1ce

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Prequel/SqlCmdPreprocessor.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Subatomix Research Inc.
22
// SPDX-License-Identifier: MIT
33

4+
using System.Diagnostics.CodeAnalysis;
45
using System.Text;
56
using System.Text.RegularExpressions;
67

@@ -103,16 +104,13 @@ public IEnumerable<string> Process(string text, string? name = null)
103104
return ProcessCore(input);
104105
}
105106

106-
private IEnumerable<string> ProcessCore(Input? input)
107+
private IEnumerable<string> ProcessCore([DisallowNull] Input? input)
107108
{
108109
string batch;
109110

110111
do
111112
{
112-
// NULLS: On first iteration, input was null-checked by calling
113-
// method. On subsequent iterations, input was checked by the
114-
// `do` condition.
115-
(batch, input) = GetNextBatch(input!);
113+
(batch, input) = GetNextBatch(input);
116114

117115
if (batch.Length != 0)
118116
yield return batch;

0 commit comments

Comments
 (0)