compat/extend/string: fix odisabled return.

`odisabled` will still return for a formula in `.brew`. This means
`EOS.undent` returns `nil` and the formula cannot be parsed. Instead
return the actual string in this case to avoid e.g. patches blowing up
with `nil` strings.

Fixes #4049.
This commit is contained in:
Mike McQuaid 2018-04-11 16:08:34 -07:00
parent e3cd9c972f
commit 9b8c30e0c8

View File

@ -1,6 +1,7 @@
class String
def undent
odisabled "<<-EOS.undent", "<<~EOS"
self
end
alias unindent undent