From 684ecd8a39f55a12c18664dc6eefb6e157bf3e60 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Thu, 4 Apr 2019 09:50:43 -0700 Subject: [PATCH] Don't retrieve info object twice Summary: Some unnecessary syscalls in the way we actually use this at the moment. Reviewed By: danielbuechele Differential Revision: D14750875 fbshipit-source-id: 5959ed0845398b29698ab58f7359869fa3657fdc --- src/utils/info.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/info.js b/src/utils/info.js index 549ee0284..e2e00a334 100644 --- a/src/utils/info.js +++ b/src/utils/info.js @@ -32,9 +32,7 @@ export function getInfo(): Info { }; } -export function stringifyInfo(): string { - const info = getInfo(); - +export function stringifyInfo(info: Info): string { const lines = [ `Platform: ${info.platform} ${info.arch}`, `Unixname: ${info.unixname}`,