Refactor calling of transform_inline_functions

- This way, @normalized_source will always be defined, which it should
  because we are referencing it a few lines down, thanks to
  @mvandervoord for the suggestion
This commit is contained in:
laurens
2019-11-11 14:26:29 +01:00
parent fe829f2d8a
commit bd91eb4cca
+5 -3
View File
@@ -44,9 +44,11 @@ class CMockHeaderParser
end
end
if @treat_inlines == :include
@normalized_source = transform_inline_functions(source)
end
@normalized_source = if (@treat_inlines == :include)
transform_inline_functions(source)
else
''
end
{ :includes => nil,
:functions => @funcs,