diff --git a/WelsonJS.Toolkit/WelsonJS.Service/ServiceMain.cs b/WelsonJS.Toolkit/WelsonJS.Service/ServiceMain.cs index 69436a1..ae3dc2b 100644 --- a/WelsonJS.Toolkit/WelsonJS.Service/ServiceMain.cs +++ b/WelsonJS.Toolkit/WelsonJS.Service/ServiceMain.cs @@ -181,10 +181,7 @@ namespace WelsonJS.Service try { Log(DispatchServiceEvent("stop")); - if (scriptControl != null) - { - scriptControl.Reset(); - } + scriptControl?.Reset(); } catch (Exception ex) {