diff --git a/spec/support/matchers/be_html_eql.rb b/spec/support/matchers/be_html_eql.rb
index 4c4e726f89..f774922305 100644
--- a/spec/support/matchers/be_html_eql.rb
+++ b/spec/support/matchers/be_html_eql.rb
@@ -38,10 +38,10 @@
match do |actual|
@actual = if path
- html(actual).css(path)
- else
- actual
- end
+ html(actual).css(path)
+ else
+ actual
+ end
EquivalentXml.equivalent?(self.actual, expected, {})
end