Skip to content

Commit 5316326

Browse files
committed
Fix lint
1 parent 8958db6 commit 5316326

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/generators/inertia/install/install_generator.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,7 @@ def install_example_page
164164

165165
say 'Adding a route for the example Inertia controller'
166166
route "get 'inertia-example', to: 'inertia_example#index'"
167-
unless File.read(file_path('config/routes.rb')).match?(/^\s*root\s+/)
168-
route "root 'inertia_example#index'"
169-
end
167+
route "root 'inertia_example#index'" unless File.read(file_path('config/routes.rb')).match?(/^\s*root\s+/)
170168

171169
say 'Copying page assets'
172170
copy_files = FRAMEWORKS[framework]['copy_files'].merge(

0 commit comments

Comments
 (0)