From 54209348086a39bfaa630a7128bf82ee958d0a1b Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Wed, 19 Jun 2019 18:25:57 +0530 Subject: [PATCH] Minor refactor use process.platform instead of os.platform() --- src/viewutils.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/viewutils.ts b/src/viewutils.ts index ba2dff9e..247b2149 100644 --- a/src/viewutils.ts +++ b/src/viewutils.ts @@ -1,5 +1,3 @@ -const os = require('os'); - export type ViewTableRow = string[]; export type ViewTable = ViewTableRow[]; @@ -13,7 +11,7 @@ const columns = process.stdout.columns ? process.stdout.columns : 80; // xxx: Windows cmd + powershell standard fonts currently don't support the full // unicode charset. For now we use fallback icons when on windows. -const useFallbackIcons = os.platform() === 'win32'; +const useFallbackIcons = process.platform === 'win32'; export const icons = useFallbackIcons? {