Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

Commit 666fb89

Browse files
committed
Removes unneeded condition
1 parent 0eed585 commit 666fb89

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/token_util.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ def self.HUMAN_BARCODE
1616
end
1717

1818
def self.invalid_barcode?(barcode)
19-
barcode.nil? || (barcode.kind_of?(String) && barcode.to_s.empty?) ||
20-
barcode.to_s.empty?
19+
barcode.nil? || (barcode.kind_of?(String) && barcode.to_s.empty?)
2120
end
2221

2322
def self.machine_barcode?(barcode)

0 commit comments

Comments
 (0)