Format the code

This commit is contained in:
MaksimZhukov 2022-12-05 21:23:44 +01:00
parent 7c97a81ef3
commit d9a075e99b
2 changed files with 10 additions and 16 deletions

View file

@ -158,13 +158,9 @@ async function getWindowsInfo() {
}
async function getMacOSInfo() {
const {stdout} = await exec.getExecOutput(
'sw_vers',
['-productVersion'],
{
silent: true
}
);
const {stdout} = await exec.getExecOutput('sw_vers', ['-productVersion'], {
silent: true
});
const macOSVersion = stdout.trim();
@ -172,13 +168,9 @@ async function getMacOSInfo() {
}
async function getLinuxInfo() {
const {stdout} = await exec.getExecOutput(
'lsb_release',
['-i', '-r', '-s'],
{
silent: true
}
);
const {stdout} = await exec.getExecOutput('lsb_release', ['-i', '-r', '-s'], {
silent: true
});
const [osName, osVersion] = stdout.trim().split('\n');
@ -187,7 +179,7 @@ async function getLinuxInfo() {
export async function getOSInfo() {
let osInfo;
if (IS_WINDOWS){
if (IS_WINDOWS) {
osInfo = await getWindowsInfo();
} else if (IS_LINUX) {
osInfo = await getLinuxInfo();