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

View File

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