diff --git a/lib/cmock_generator.rb b/lib/cmock_generator.rb index b544d74..826bf8b 100644 --- a/lib/cmock_generator.rb +++ b/lib/cmock_generator.rb @@ -137,7 +137,7 @@ class CMockGenerator @file_writer.create_file(mock_project[:module_name] + '.c', @subdir) do |file, fullname| blank_project = mock_project.clone blank_project[:parsed_stuff] = { :functions => [] } - if (existing.empty?) + if existing.empty? create_source_header_section(file, fullname, blank_project) else file << existing << "\n"