Skip to content

Commit

Permalink
Remove unused arg from html pretty printer
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Apr 23, 2017
1 parent b3b56d1 commit af36162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/pretty-format/src/plugins/HTMLElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function printChildren(flatChildren, print, indent, colors, opts) {
.join(opts.edgeSpacing);
}

function printAttributes(attributes, print, indent, colors, opts) {
function printAttributes(attributes, indent, colors, opts) {
return attributes
.sort()
.map(attribute => {
Expand Down Expand Up @@ -80,7 +80,7 @@ const print = (
const hasAttributes = element.attributes && element.attributes.length;
if (hasAttributes) {
const attributes = Array.prototype.slice.call(element.attributes);
result += printAttributes(attributes, print, indent, colors, opts);
result += printAttributes(attributes, indent, colors, opts);
}

const flatChildren = Array.prototype.slice.call(element.childNodes);
Expand Down

0 comments on commit af36162

Please sign in to comment.