From e2f68b72565d84462ac8918ce73770741b152551 Mon Sep 17 00:00:00 2001 From: di-sukharev Date: Thu, 30 Mar 2023 19:53:14 +0800 Subject: [PATCH] refactor(githook.ts): replace comments with line breaks for switch cases in platform switch statement --- src/commands/githook.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/commands/githook.ts b/src/commands/githook.ts index ee3aec6..152d6c6 100755 --- a/src/commands/githook.ts +++ b/src/commands/githook.ts @@ -11,13 +11,16 @@ const platform = process.platform; let separator = ''; switch (platform) { - case 'win32': // Windows + // Windows + case 'win32': separator = path.sep; break; - case 'darwin': // macOS + // macOS + case 'darwin': separator = ''; break; - case 'linux': // Linux + // Linux + case 'linux': separator = ''; break; default: