Skip to content

Commit 8fa60f2

Browse files
committed
fix: lint
1 parent 7b14ee8 commit 8fa60f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import * as path from 'path'
1010
*/
1111
export function resolveEnvVariables(value: string): string {
1212
// Replace ${env:VAR_NAME} with environment variable values
13-
return value.replace(/\$\{env:([^}]+)\}/g, (match, envVar) => {
13+
return value.replace(/\$\{env:([^}]+)\}/g, (match, envVar: string) => {
1414
const envValue = process.env[envVar]
1515
return envValue !== undefined ? envValue : match
1616
})

src/test/envResolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { describe, it, beforeEach, afterEach } from 'mocha'
33

44
// Inline the function for testing without vscode dependency
55
function resolveEnvVariables(value: string): string {
6-
return value.replace(/\$\{env:([^}]+)\}/g, (match, envVar) => {
6+
return value.replace(/\$\{env:([^}]+)\}/g, (match, envVar: string) => {
77
const envValue = process.env[envVar]
88
return envValue !== undefined ? envValue : match
99
})

0 commit comments

Comments
 (0)