refactor(githook.ts): replace comments with line breaks for switch cases in platform switch statement
This commit is contained in:
@@ -11,13 +11,16 @@ const platform = process.platform;
|
|||||||
|
|
||||||
let separator = '';
|
let separator = '';
|
||||||
switch (platform) {
|
switch (platform) {
|
||||||
case 'win32': // Windows
|
// Windows
|
||||||
|
case 'win32':
|
||||||
separator = path.sep;
|
separator = path.sep;
|
||||||
break;
|
break;
|
||||||
case 'darwin': // macOS
|
// macOS
|
||||||
|
case 'darwin':
|
||||||
separator = '';
|
separator = '';
|
||||||
break;
|
break;
|
||||||
case 'linux': // Linux
|
// Linux
|
||||||
|
case 'linux':
|
||||||
separator = '';
|
separator = '';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user