From c7549f476a1f6d738417bfce736b81091df936d3 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Wed, 13 Jun 2018 07:17:17 +0200 Subject: [PATCH] Refactor `.simplecov`. --- Library/Homebrew/.simplecov | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/.simplecov b/Library/Homebrew/.simplecov index 2fa803466b..96b1f3ec0e 100755 --- a/Library/Homebrew/.simplecov +++ b/Library/Homebrew/.simplecov @@ -49,10 +49,9 @@ SimpleCov.start do add_filter %r{^/vendor/} require "rbconfig" - add_filter %r{^/os/mac/} unless RbConfig::CONFIG["host_os"].include?("darwin") - unless RbConfig::CONFIG["host_os"].include?("linux") - add_filter %r{^/os/linux/} - end + host_os = RbConfig::CONFIG["host_os"] + add_filter %r{^/os/mac/} if host_os !~ /darwin/ + add_filter %r{^/os/linux/} if host_os !~ /linux/ # Add groups and the proper project name to the output. project_name "Homebrew"