Skip to content
Snippets Groups Projects
Commit dd9b317e authored by Jack Nagel's avatar Jack Nagel
Browse files

audit: fix broken condition

parent c05275e3
No related branches found
No related tags found
No related merge requests found
......@@ -553,7 +553,7 @@ class FormulaAuditor
end
# Checks that apply only to code in def caveats
if text =~ /(\s*)def\s+caveats((.*\n)*?)(\1end)/ || /(\s*)def\s+caveats;(.*?)end/
if text =~ /(\s*)def\s+caveats((.*\n)*?)(\1end)/ || text =~ /(\s*)def\s+caveats;(.*?)end/
caveats_body = $2
if caveats_body =~ /[ \{=](python[23]?)\.(.*\w)/
# So if in the body of caveats there is a `python.whatever` called,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment