• Yorick Peterse's avatar
    Handle empty chat output better · 11663a5b
    Yorick Peterse authored
    If the output was empty we would end up running `''.split("\n")`,
    producing an empty Array. Slicing an empty Array using a range such as
    1..-1 would then produce a nil value, instead of an empty Array. This in
    turn would cause a NoMethodError since "join" is not defined for
    NilClass.
    11663a5b
output.rb 2.6 KB