From 77f97f71eb82407e03f88af71069a520df5ad9e0 Mon Sep 17 00:00:00 2001 From: Osama Albahrani <54853250+osalbahr@users.noreply.github.com> Date: Sat, 29 Jul 2023 00:58:36 -0400 Subject: [PATCH] config: :OS_VERSION (fix style) --- Library/Homebrew/os/linux.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/os/linux.rb b/Library/Homebrew/os/linux.rb index 42b03057db..e813f1f13b 100644 --- a/Library/Homebrew/os/linux.rb +++ b/Library/Homebrew/os/linux.rb @@ -19,7 +19,7 @@ module OS end elsif (redhat_release = Pathname.new("/etc/redhat-release")).readable? redhat_release.read.chomp - elsif ::OS_VERSION and ! ::OS_VERSION.empty? + elsif ::OS_VERSION.present? ::OS_VERSION else "Unknown"