Skip to content

Commit

Permalink
misc: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyaDghosh committed Dec 16, 2024
1 parent d885245 commit ea272ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backend/utils/systeminfo/osInfo/linux.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ async function osInfo_linux(): Promise<{ name: string; version?: string }> {
const osName = nameMatch
? stripQuotes(nameMatch)
: prettyNameMatch
? stripQuotes(prettyNameMatch)
: 'Linux'
? stripQuotes(prettyNameMatch)
: 'Linux'
const osVersion = versionMatch
? stripQuotes(versionMatch)
: versionId && versionCodename
? `${versionId} ${versionCodename}`
: undefined
? `${versionId} ${versionCodename}`
: undefined
if (osVersion) return { name: osName, version: osVersion }
return { name: osName }
}
Expand Down

0 comments on commit ea272ff

Please sign in to comment.