Fix mutex variable naming in Program.cs

Renamed the out variable from '_createdNew' to 'createdNew' for clarity and updated its usage in the mutex check. This improves code readability and consistency.
This commit is contained in:
Namhyeon Go 2025-08-26 12:55:39 +09:00
parent ecbe55cf80
commit f3db44d8e3

View File

@ -29,8 +29,8 @@ namespace WelsonJS.Launcher
static void Main()
{
// create the mutex
_mutex = new Mutex(true, "WelsonJS.Launcher", out bool _createdNew);
if (!_createdNew)
_mutex = new Mutex(true, "WelsonJS.Launcher", out bool createdNew);
if (!createdNew)
{
_logger.Error("WelsonJS Launcher already running.");
return;