We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cc5468 commit f09237eCopy full SHA for f09237e
lib/rootfs/distro/ubuntu/arch.rb
@@ -22,9 +22,8 @@ def parse_arch(any)
22
str = any.to_s
23
puts err_msg if str.empty?
24
25
- ARCH.each do |arch|
26
- return { arch: arch } if str.include?(arch)
27
- end
+ return { arch: str } if ARCH.include?(str)
+
28
puts err_msg
29
end
30
lib/rootfs/distro/ubuntu/edition.rb
@@ -49,9 +49,8 @@ def parse_edition(any)
49
50
51
52
- EDITION.each do |edition|
53
- return { edition: edition } if str.include?(edition)
54
+ return { edition: str } if EDITION.include?(str)
55
56
57
0 commit comments