From b8a7db10ba15dea23f8e0246db1fe11b41f923e7 Mon Sep 17 00:00:00 2001 From: Louis Antonopoulos Date: Tue, 29 Oct 2024 19:33:40 -0400 Subject: [PATCH] Simplify node_not_installed logic --- lib/install/web.rb | 2 +- lib/suspenders/generators.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/install/web.rb b/lib/install/web.rb index b071c4d7..8f89ccd6 100644 --- a/lib/install/web.rb +++ b/lib/install/web.rb @@ -3,7 +3,7 @@ def node_version end def node_not_installed? - !node_version.present? + node_version.blank? end def node_version_unsupported? diff --git a/lib/suspenders/generators.rb b/lib/suspenders/generators.rb index 9d342604..78cf37c2 100644 --- a/lib/suspenders/generators.rb +++ b/lib/suspenders/generators.rb @@ -24,7 +24,7 @@ def node_version end def node_not_installed? - !node_version.present? + node_version.blank? end def node_version_unsupported?