prettier and add type

This commit is contained in:
Bethany
2023-09-06 07:48:50 -07:00
parent ac336c5cf5
commit c43f71bc5f
12 changed files with 92 additions and 59 deletions
+4 -1
View File
@@ -140,7 +140,10 @@ export function _getOsVersion(): string {
(parts[0].trim() === 'VERSION_ID' ||
parts[0].trim() === 'DISTRIB_RELEASE')
) {
version = parts[1].trim().replace(/^"/, '').replace(/"$/, '')
version = parts[1]
.trim()
.replace(/^"/, '')
.replace(/"$/, '')
break
}
}