diff --git a/lib/format_staged.rb b/lib/format_staged.rb index d651d1c..0eb0d9c 100644 --- a/lib/format_staged.rb +++ b/lib/format_staged.rb @@ -19,7 +19,7 @@ class FormatStaged @write = write @verbose = verbose - String.disable_colorization = !(color_output || STDOUT.isatty) + String.disable_colorization = !(color_output || $stdout.isatty) end def run