Rename mutex out parameter for clarity

Changed the out parameter name from 'mutexNotExists' to '_createdNew' in the Mutex constructor for improved readability and clarity in the Main method.
This commit is contained in:
Namhyeon Go 2025-08-26 12:55:07 +09:00
parent d3ecbd7ebe
commit ecbe55cf80

View File

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