Skip to content

Commit bd50da6

Browse files
committed
Refactoring the code to make the behavior explicit
We only want to check if the value is different from false.
1 parent 190f19a commit bd50da6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/thor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def long_desc(long_description, options = {})
8181
command.long_description = long_description if long_description
8282
else
8383
@long_desc = long_description
84-
@long_desc_wrap = options[:wrap] || options[:wrap].nil?
84+
@long_desc_wrap = options[:wrap] != false
8585
end
8686
end
8787

0 commit comments

Comments
 (0)