DEV: Fix unicorn not booting due to 8e10878 (#27727)

`String#present?` is a method defined by Rails on the `String` class but
this class is used before Rails has been loaded.
This commit is contained in:
Alan Guo Xiang Tan 2024-07-05 10:36:13 +08:00 committed by GitHub
parent 8e10878e1a
commit 37413c0ecd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -28,6 +28,6 @@ class GitUtils
default_value
end
(value.present? ? value : nil) || default_value
(!value.empty? ? value : nil) || default_value
end
end