Skip to content

Commit

Permalink
no unnecessary assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Aug 29, 2024
1 parent d656e57 commit eceb130
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ const escapeFunction = (string) => {
start = i + 1;
} while (escapeRegExp.test(string));

escaped += string.slice(start);

return escaped;
return escaped + string.slice(start);
};

/**
Expand Down Expand Up @@ -68,9 +66,7 @@ export const html = ({ raw: literals }, ...expressions) => {
accumulator += literal + string;
}

accumulator += literals[expressions.length];

return accumulator;
return accumulator + literals[expressions.length];
};

/**
Expand Down

0 comments on commit eceb130

Please # to comment.