Skip to content

Commit

Permalink
fix the wrong check
Browse files Browse the repository at this point in the history
  • Loading branch information
kbukum1 committed Jan 29, 2025
1 parent ac48f45 commit 1f5d982
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def package_manager_by_name(name) # rubocop:disable Metrics/PerceivedComplexity
detected_version = detect_version(name)

# if we have a detected version, we check if it is deprecated or unsupported
unless detected_version&.empty?
if detected_version && !detected_version.empty?
package_manager = package_manager_class.new(
detected_version: detected_version.to_s
)
Expand Down

0 comments on commit 1f5d982

Please sign in to comment.