Skip to content

Commit 576e7a3

Browse files
committed
refactor: use non-null assertion
in place of type assertion
1 parent 6f7658c commit 576e7a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const run = async (): Promise<void> => {
99
showInput(input)
1010

1111
core.startGroup('Read file content')
12-
const workSpace = process.env.GITHUB_WORKSPACE as string
12+
const workSpace = process.env.GITHUB_WORKSPACE!
1313
const filePath = path.join(workSpace, input.FilePath)
1414
const content = fs.readFileSync(filePath, 'utf-8')
1515
core.info(`[INFO] Done with file "${filePath}"`)

0 commit comments

Comments
 (0)