Skip to content

Commit 3e1c740

Browse files
Copilotdawidd6
andcommitted
Fix undeclared variable 'filtered' in ESM strict mode
Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
1 parent 240889c commit 3e1c740

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ async function main() {
213213

214214
// One artifact if 'name' input is specified, one or more if `name` is a regular expression, all otherwise.
215215
if (name) {
216-
filtered = artifacts.filter((artifact) => {
216+
const filtered = artifacts.filter((artifact) => {
217217
if (nameIsRegExp) {
218218
return artifact.name.match(name) !== null
219219
}

0 commit comments

Comments
 (0)