Use compact.join strategy here too

This commit is contained in:
David Heinemeier Hansson
2023-03-09 14:24:19 +01:00
committed by GitHub
parent 8b913068de
commit ab7c6c6540

View File

@@ -21,11 +21,7 @@ class Mrsk::Commands::Auditor < Mrsk::Commands::Base
private
def audit_log_file
if config.destination
"mrsk-#{config.service}-#{config.destination}-audit.log"
else
"mrsk-#{config.service}-audit.log"
end
[ "mrsk", config.service, config.destination, "audit.log" ].compact.join("-")
end
def tagged_record_line(line)