Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu committed Dec 22, 2024
1 parent c390a0d commit ccc88d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2559,11 +2559,11 @@ export function parsePom(pomFile) {
}
if (project?.modules?.module) {
if (Array.isArray(project.modules.module)) {
// If it's an array, proceed with mapping
modules = project.modules.module.map((m) => m?._);
// If it's an array, proceed with mapping
modules = project.modules.module.map((m) => m?._);
} else {
// If not an array, handle/convert it accordingly. For instance:
modules = [project.modules.module._];
// If not an array, handle/convert it accordingly. For instance:
modules = [project.modules.module._];
}
}
if (project?.properties) {
Expand Down
2 changes: 1 addition & 1 deletion types/lib/helpers/utils.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ccc88d5

Please # to comment.