Skip to content

Commit 6b8f7b2

Browse files
committed
Simpler and clearer check
1 parent 3221c29 commit 6b8f7b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/api/connect/v3/systems/products_controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def activate
1212
end
1313

1414
def show
15-
if @product.identifier.casecmp('sles').zero?
15+
if @product.identifier.casecmp?('sles')
1616
# if system has SLE Micro
1717
# it should access to SLES products
1818
sle_micro = @system.products.any? { |p| p.identifier.downcase.include?('sle-micro') }

0 commit comments

Comments
 (0)