Skip to content

Commit

Permalink
Revert "fix: cant use .split on non string"
Browse files Browse the repository at this point in the history
This reverts commit 5837281.
  • Loading branch information
SamTealeDrest committed Feb 1, 2022
1 parent 5837281 commit fec3e60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function getModulePaths<T extends Record<string, unknown>>(
if (ext === '.tf' || base === '.terraform.lock.hcl') {
paths.push(dir)
} else if (ext.match(/ya?ml/) !== null || ext === '.tpl') {
paths.push(dir.toString().split('/').at(-2)!)
paths.push(dir.split('/').at(-2)!)
}
return paths
}, [])
Expand Down

0 comments on commit fec3e60

Please sign in to comment.