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
This commit is contained in:
committed by
Facebook Github Bot
parent
2655d9b0ef
commit
684ecd8a39
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user