Skip to content

Commit 74f6e37

Browse files
committed
Sync with latest ReClass.NET changes.
1 parent fe1de97 commit 74f6e37

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

Forms/ScriptEditorForm.Designer.cs

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PythonScriptingPluginExt.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Drawing;
4-
using System.Linq;
54
using System.Windows.Forms;
65
using IronPython.Hosting;
76
using Microsoft.Scripting.Hosting;
@@ -27,12 +26,7 @@ public override bool Initialize(IPluginHost pluginHost)
2726
Terminate();
2827
}
2928

30-
if (pluginHost == null)
31-
{
32-
throw new ArgumentNullException(nameof(pluginHost));
33-
}
34-
35-
host = pluginHost;
29+
host = pluginHost ?? throw new ArgumentNullException(nameof(pluginHost));
3630

3731
engine = Python.CreateEngine();
3832
engine.Runtime.LoadAssembly(typeof(IntPtr).Assembly); // System.dll

0 commit comments

Comments
 (0)