Skip to content

Commit 1bdf5bc

Browse files
committed
Fix TS issue
1 parent ece3c8e commit 1bdf5bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/package.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ export function packagePhpCode(
1010
path: string | undefined = undefined,
1111
options: AssetOptions = {}
1212
): Code {
13-
path = path ?? functionDefaults.path;
13+
const resolvedPath = path ?? functionDefaults.path;
1414
// Prepend the PHP paths excluded by default
1515
const exclude = [...functionDefaults.excludedPhpPaths, ...(options.exclude ?? [])];
1616

17-
return Code.fromAsset(path, {
17+
return Code.fromAsset(resolvedPath, {
1818
...options,
1919
exclude,
2020
});

0 commit comments

Comments
 (0)