From a0b9bfd24638315c5dcee78daa2dae5af6e6f29c Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Mon, 11 Aug 2014 13:52:36 +0000 Subject: [PATCH] Simplify tput detection --- lib/mutant/reporter/cli/tput.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/mutant/reporter/cli/tput.rb b/lib/mutant/reporter/cli/tput.rb index 4f585c90..2e0026e1 100644 --- a/lib/mutant/reporter/cli/tput.rb +++ b/lib/mutant/reporter/cli/tput.rb @@ -19,12 +19,7 @@ module Mutant UNAVAILABLE = new(false, nil, nil) - INSTANCE = - if save && restore && clean - new(true, reset + save, restore + clean) - else - UNAVAILABLE - end + INSTANCE = clean ? new(true, reset + save, restore + clean) : UNAVAILABLE end # TPUT end # CLI