From 23c73e2147c4fcabfe283658c12e376709e39ca5 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 5 Sep 2014 16:56:07 -0500 Subject: [PATCH] Remove unnecessary closed? guard The debugger can't jump back to this point, so we don't have to worry about this code executing twice. --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 9048803efb..2b7c2ced24 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -529,7 +529,7 @@ class Formula puts buf end ensure - rd.close unless rd.closed? + rd.close end else pid = fork { exec_cmd(cmd, args, log, logfn) }