Skip to content

Commit a24a1ab

Browse files
committed
refactor(builder): Small stringReplacer cleanup
1 parent bba86e6 commit a24a1ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/builder/lib/processors/stringReplacer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ export default function({resources, options: {pattern, replacement}}) {
2121
return Promise.all(resources.map(async (resource) => {
2222
const content = await resource.getString();
2323
const newContent = content.replaceAll(pattern, replacement);
24+
// only modify the resource's string if it was changed
2425
if (content !== newContent) {
2526
resource.setString(newContent);
2627
return resource;
2728
}
28-
// return resource;
2929
}));
3030
}

0 commit comments

Comments
 (0)