Skip to content

Commit 4f22291

Browse files
committed
Remove extra null check.
1 parent a70c580 commit 4f22291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DuckDB.NET.Data/DuckDBCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public override void Prepare() { }
122122

123123
protected override DbParameter CreateDbParameter() => new DuckDBParameter();
124124

125-
internal void CloseConnection() => Connection?.Close();
125+
internal void CloseConnection() => Connection!.Close();
126126

127127
private void EnsureConnectionOpen([CallerMemberName] string operation = "")
128128
{

0 commit comments

Comments
 (0)