Skip to content

Commit bc822f9

Browse files
committed
Refactor.
1 parent 5eaef06 commit bc822f9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

PSql.Deploy.Tests/Support/ScriptExecutor.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ internal static (IReadOnlyList<PSObject?>, Exception?) Execute(string script)
4949

5050
internal static (IReadOnlyList<PSObject?>, Exception?) Execute(Action<InitialSessionState>? setup, string script)
5151
{
52-
if (script is null)
53-
throw new ArgumentNullException(nameof(script));
52+
ArgumentNullException.ThrowIfNull(script);
5453

5554
var state = InitialState;
5655

PSql.Deploy.Tests/Utilities/CmdletExtensionsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,6 @@ public void WriteHost_NotNull()
114114

115115
private static (IReadOnlyList<PSObject?>, Exception?) Execute(string command)
116116
{
117-
return ScriptExecutor.Execute(ScriptExecutor.WithTestingVariable, command);
117+
return ScriptExecutor.Execute(command);
118118
}
119119
}

0 commit comments

Comments
 (0)