From 44e1844f958c4bbc5cf9672dcbcd9e9285174190 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Sat, 22 Apr 2023 13:51:59 -0700 Subject: [PATCH] Fix Style/InvertibleUnlessCondition violation --- lib/autoupdate/status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/autoupdate/status.rb b/lib/autoupdate/status.rb index 587c30c..e6180ff 100644 --- a/lib/autoupdate/status.rb +++ b/lib/autoupdate/status.rb @@ -32,7 +32,7 @@ def autoupdate_inadvisably_old? creation = File.birthtime(Autoupdate::Core.location/"brew_autoupdate").to_date days_old = (Date.today - creation).to_i - return unless days_old >= 90 + return if days_old < 90 <<~EOS Autoupdate has been running for more than 90 days. Please consider