Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
the_mcmurder committed Jun 25, 2021
1 parent b094a05 commit da1c554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/verify-valid-input-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ exports.verifyInputFormatForServices = function (services) {
errorsToReport.push(
`Invalid import map in request body -- module with name '${moduleName}' does not have a string url`
);
} else if (!moduleName) {
} else if (!moduleName || moduleName.trim().length === 0) {
// catch times where the name evaluates to false, such as "".
errorsToReport.push(
`Invalid module name -- module name '${moduleName}' is invalid`
Expand Down

0 comments on commit da1c554

Please sign in to comment.