Skip to content

Commit 9d0b2f2

Browse files
committed
Oops, can't use null when the Create method validates not null. :-)
1 parent f7263e4 commit 9d0b2f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellEditorServices.Protocol/Server/DebugAdapter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ protected async Task HandleSetBreakpointsRequest(
227227
LogLevel.Warning,
228228
$"Attempted to set breakpoints on a non-existing file: {setBreakpointsParams.Source.Path}");
229229

230-
string message = this.noDebug ? null : "Source does not exist, breakpoint not set.";
230+
string message = this.noDebug ? string.Empty : "Source does not exist, breakpoint not set.";
231231

232232
var srcBreakpoints = setBreakpointsParams.Breakpoints
233233
.Select(srcBkpt => Protocol.DebugAdapter.Breakpoint.Create(

0 commit comments

Comments
 (0)