Skip to content

Commit f544053

Browse files
adriaandotcomAdriaan
authored andcommitted
Remove optional chaining
1 parent 5069724 commit f544053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

minify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ const templates = [
215215

216216
// Add both SRI files and non SRI files if variables.sri = true
217217
const files = templates.reduce((list, template) => {
218-
if (template.variables?.sri) {
218+
if (template.variables.sri) {
219219
list.push(
220220
{ ...template, variables: { ...template.variables, sri: true } },
221221
{ ...template, variables: { ...template.variables, sri: false } }

0 commit comments

Comments
 (0)