Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup: lint
  • Loading branch information
bmeck committed Mar 21, 2022
commit 933139e728bae6a5a3b2dc49cdcc53440b18ae6c
5 changes: 2 additions & 3 deletions lib/internal/modules/esm/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,8 @@ class ESMLoader {
*/
getBaseURL(url) {
let baseURL = this.baseURLs.get(url);
// this will only be a string if it exists in the Map
// otherwise, it doesn't have a baseURL or needs to
// compute the baseURL
// This will only be a string if it exists in the Map otherwise, it
// doesn't have a baseURL or needs to compute the baseURL
if (typeof baseURL === 'string') {
return baseURL;
}
Expand Down