Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
use process.platform instead of os.platform()
  • Loading branch information
jamesgeorge007 committed Jun 19, 2019
1 parent d054e81 commit 5420934
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/viewutils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const os = require('os');

export type ViewTableRow = string[];
export type ViewTable = ViewTableRow[];

Expand All @@ -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?
{
Expand Down

0 comments on commit 5420934

Please sign in to comment.