File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def load_yaml_with_conditionals(file_path)
42
42
YAML . load ( yaml_content )
43
43
end
44
44
45
- def is_erb_file ( file_path )
45
+ def erb_file? ( file_path )
46
46
File . foreach ( file_path ) { |line | return true if line . include? ( '<%' ) || line . include? ( '<%=' ) }
47
47
false
48
48
end
@@ -53,8 +53,8 @@ def is_erb_file(file_path)
53
53
. each do |file |
54
54
begin
55
55
yaml_data = load_yaml_with_conditionals ( file )
56
- # next if yaml_data.nil? || !yaml_data.is_a?(Hash) || is_erb_file (file)
57
- next unless yaml_data . is_a? ( Hash ) && !is_erb_file ( file )
56
+ # next if yaml_data.nil? || !yaml_data.is_a?(Hash) || erb_file? (file)
57
+ next unless yaml_data . is_a? ( Hash ) && !erb_file? ( file )
58
58
59
59
kconfig_section = yaml_data [ 'need_kconfig' ]
60
60
You can’t perform that action at this time.
0 commit comments