Skip to content

Commit fd6d582

Browse files
committed
lints
1 parent d81ab12 commit fd6d582

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/view_component/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def view_cache_dependencies
333333
[]
334334
end
335335

336-
if defined?(Rails::VERSION) && (Rails::VERSION::MAJOR == 7 && Rails::VERSION::MINOR == 1)
336+
if defined?(Rails::VERSION) && Rails::VERSION::MAJOR == 7 && Rails::VERSION::MINOR == 1
337337
# Rails expects us to define `format` on all renderables,
338338
# but we do not know the `format` of a ViewComponent until runtime.
339339
def format

lib/view_component/collection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def each(&block)
2020
components.each(&block)
2121
end
2222

23-
if defined?(Rails::VERSION) && (Rails::VERSION::MAJOR == 7 && Rails::VERSION::MINOR == 1)
23+
if defined?(Rails::VERSION) && Rails::VERSION::MAJOR == 7 && Rails::VERSION::MINOR == 1
2424
# Rails expects us to define `format` on all renderables,
2525
# but we do not know the `format` of a ViewComponent until runtime.
2626
def format

0 commit comments

Comments
 (0)