Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 98a421b

Browse files
committed
implicit return you guys
1 parent a250d50 commit 98a421b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/support/react/spec_helpers.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ def render_to_html(type, options = {})
99

1010
def renderToDocument(type, options = {})
1111
element = React.create_element(type, options)
12-
return renderElementToDocument(element)
12+
renderElementToDocument(element)
1313
end
1414

1515
def renderElementToDocument(element)
1616
instance = Native(`ReactTestUtils.renderIntoDocument(#{element.to_n})`)
1717
instance.class.include(React::Component::API)
18-
return instance
18+
instance
1919
end
2020

2121
def simulateEvent(event, element, params = {})

0 commit comments

Comments
 (0)