Skip to content

Commit c96900a

Browse files
committed
refactor: correct comment to clarify transformation effect application logic
1 parent d07979f commit c96900a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/url/builder.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function constructTransformationString(transformation: Transformation[] | undefi
9898
if (value === true || value === "-" || value === "true") {
9999
parsedTransformStep.push(transformKey);
100100
} else {
101-
// Any other value means that the effect should be applied
101+
// Any other value means that the effect should not be applied
102102
continue;
103103
}
104104
} else if (
@@ -109,7 +109,6 @@ function constructTransformationString(transformation: Transformation[] | undefi
109109
} else if (key === "raw") {
110110
parsedTransformStep.push(transformation[i][key]);
111111
} else {
112-
value = transformation[i][key as keyof Transformation];
113112
if (transformKey === "di") {
114113
value = removeTrailingSlash(removeLeadingSlash(value as string || ""));
115114
value = value.replace(/\//g, "@@");

0 commit comments

Comments
 (0)