Skip to content

Commit d26fae2

Browse files
committed
Code optimization
1 parent 886c0d3 commit d26fae2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Sql.Cmdlets/Get-First.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected override void ProcessRecord() {
6464
}
6565
catch (TargetInvocationException e) {
6666
WriteError(new ErrorRecord(e.InnerException, "GetFirst:TargetInvocation", ErrorCategory.InvalidOperation, null));
67-
WriteObject(null);
67+
WriteObject(default);
6868
}
6969
}
7070
}

src/Sql.Cmdlets/Get-Single.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected override void ProcessRecord() {
6464
}
6565
catch (TargetInvocationException e) {
6666
WriteError(new ErrorRecord(e.InnerException, "GetSingle:TargetInvocation", ErrorCategory.InvalidOperation, null));
67-
WriteObject(null);
67+
WriteObject(default);
6868
}
6969
}
7070
}

0 commit comments

Comments
 (0)