mirror of
https://github.com/actions/toolkit.git
synced 2026-08-12 00:00:17 +02:00
prettier and add type
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user