From 97aa0cde30591a3644797e8385e4ff928ed0d965 Mon Sep 17 00:00:00 2001 From: "Pascal J. Bourguignon" Date: Fri, 11 Aug 2023 11:28:18 +0200 Subject: [PATCH] Removed parentheses following rubocop advice. --- lib/cmock_file_writer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmock_file_writer.rb b/lib/cmock_file_writer.rb index 98c0b812..ee198061 100644 --- a/lib/cmock_file_writer.rb +++ b/lib/cmock_file_writer.rb @@ -22,7 +22,7 @@ def create_file(filename, subdir) full_file_name_temp = "#{@config.mock_path}/#{subdir + '/' if subdir}#{filename}.new" full_file_name_done = "#{@config.mock_path}/#{subdir + '/' if subdir}#{filename}" - puts "Creating #{full_file_name_done.inspect}" unless (@config.verbosity < 2) + puts "Creating #{full_file_name_done.inspect}" unless @config.verbosity < 2 File.open(full_file_name_temp, 'w') do |file| yield(file, filename)