Skip to content

Commit

Permalink
remove unnecessary parameter from addText
Browse files Browse the repository at this point in the history
  • Loading branch information
nerrad committed Nov 15, 2019
1 parent d84249d commit 292ceeb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/element/src/create-interpolate-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,9 @@ function nextToken() {
* indoc.length and offset.
*
* @private
*
* @param {number} rawLength If provided will be used as the length of chars
* to extract.
*/
function addText( rawLength ) {
const length = rawLength ? rawLength : indoc.length - offset;
function addText() {
const length = indoc.length - offset;
if ( 0 === length ) {
return;
}
Expand Down

0 comments on commit 292ceeb

Please sign in to comment.