lib/quality/tools/punchlist.rb in quality-37.1.1 vs lib/quality/tools/punchlist.rb in quality-38.0.0
- old
+ new
@@ -5,12 +5,10 @@
# Adds 'punchlist' tool support to quality gem
class Punchlist < Tool
def punchlist_args
glob = "--glob '#{source_and_doc_files_glob}'"
regexp = " --regexp '#{punchlist_regexp}'" if punchlist_regexp
- unless source_files_exclude_glob == '{}'
- exclude = " --exclude-glob '#{source_files_exclude_glob}'"
- end
+ exclude = " --exclude-glob '#{source_files_exclude_glob}'" unless source_files_exclude_glob == '{}'
args = glob
args += regexp if regexp
args += exclude if exclude
args