audit: remove trailing newline check.

This is already done by the default RuboCop configuration.
This commit is contained in:
Mike McQuaid 2020-04-15 20:47:35 +01:00
parent b0d3414fdb
commit 3546c39581
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -271,8 +271,6 @@ module Homebrew
problem "'inreplace ... do' was used for a single substitution (use the non-block form instead)." problem "'inreplace ... do' was used for a single substitution (use the non-block form instead)."
end end
problem "File should end with a newline" unless text.trailing_newline?
if formula.core_formula? && @versioned_formula if formula.core_formula? && @versioned_formula
unversioned_formula = begin unversioned_formula = begin
# build this ourselves as we want e.g. homebrew/core to be present # build this ourselves as we want e.g. homebrew/core to be present