Skip to content

Commit d7c2893

Browse files
switch to string.empty (#1174)
* switch to string.empty * Keith's feedback
1 parent 38fd616 commit d7c2893

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/PowerShellEditorServices/Services/PowerShellContext/Session/Host/EditorServicesPSHostUserInterface.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,7 @@ public override Dictionary<string, PSObject> Prompt(
310310
{
311311
psObjectDict.Add(
312312
keyValuePair.Key,
313-
keyValuePair.Value != null
314-
? PSObject.AsPSObject(keyValuePair.Value)
315-
: null);
313+
PSObject.AsPSObject(keyValuePair.Value ?? string.Empty));
316314
}
317315
}
318316

0 commit comments

Comments
 (0)