Skip to content

Commit ca215b7

Browse files
hsbtmatzbot
authored andcommitted
[ruby/rubygems] bin/rubocop -A
ruby/rubygems@ba8e4ed9ed
1 parent f79f618 commit ca215b7

2 files changed

Lines changed: 3 additions & 76 deletions

File tree

lib/rubygems/yaml_serializer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def coerce(val)
279279
true
280280
elsif val == "false"
281281
false
282-
elsif val == "~" || val == "null"
282+
elsif ["~", "null"].include?(val)
283283
nil
284284
elsif val == "{}"
285285
Mapping.new

0 commit comments

Comments
 (0)