nagios: fix rubocop 0.65.0 style.

This commit is contained in:
Mike McQuaid 2019-02-19 13:28:13 +00:00
parent 6841c6f2f5
commit 2627d1f9ea

View file

@ -70,6 +70,7 @@ class Nagios < Formula
config = etc/"nagios/nagios.cfg"
return unless File.exist?(config)
return if File.read(config).include?(ENV["USER"])
inreplace config, "brew", ENV["USER"]
end