Skip to content

Commit

Permalink
Fix missing assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed May 11, 2024
1 parent 9df2d34 commit f5c3028
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion img.js
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ function logProcessedMessage(eleventyConfig, src, opts) {
if(typeof eleventyConfig?.logger?.logWithOptions !== "function" || opts.transformOnRequest) {
return;
}

let logSrc;
if(Util.isRemoteUrl(src)) {
logSrc = src;
Expand All @@ -741,7 +742,7 @@ function logProcessedMessage(eleventyConfig, src, opts) {
// convert back to relative url
logSrc = TemplatePath.addLeadingDotSlash(path.relative(path.resolve("."), src));
} else {
TemplatePath.addLeadingDotSlash(src);
logSrc = TemplatePath.addLeadingDotSlash(src);
}
}

Expand Down

0 comments on commit f5c3028

Please sign in to comment.