From af5a885ace56c113f88c56a5a7c3b0cdab043e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dorian=20Mari=C3=A9?= Date: Wed, 28 Aug 2024 21:33:59 +0200 Subject: [PATCH] reformat multiline conditions and string for readability --- bin/rubocop | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/rubocop b/bin/rubocop index 369a05b..f39dc9a 100755 --- a/bin/rubocop +++ b/bin/rubocop @@ -13,11 +13,15 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) bundle_binstub = File.expand_path("bundle", __dir__) if File.file?(bundle_binstub) - if File.read(bundle_binstub, 300).include?("This file was generated by Bundler") + if File.read(bundle_binstub, 300).include?( + "This file was generated by Bundler" + ) load(bundle_binstub) else - abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. -Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") + abort( + "Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. +Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again." + ) end end