unbound: fix rubocop 0.65.0 style.

This commit is contained in:
Mike McQuaid 2019-02-19 13:28:16 +00:00
parent 5d8c09bc94
commit 55ee736a4f

View file

@ -35,6 +35,7 @@ class Unbound < Formula
conf = etc/"unbound/unbound.conf"
return unless conf.exist?
return unless conf.read.include?('username: "@@HOMEBREW-UNBOUND-USER@@"')
inreplace conf, 'username: "@@HOMEBREW-UNBOUND-USER@@"',
"username: \"#{ENV["USER"]}\""
end