Skip to content

Commit d89aa5a

Browse files
committed
Avoid non-nil checks in examples
1 parent 89dc612 commit d89aa5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2649,7 +2649,7 @@ Translations of the guide are available in the following languages:
26492649
rescue
26502650
# .. handle error
26512651
ensure
2652-
f.close unless f.nil?
2652+
f.close if f
26532653
end
26542654
```
26552655

0 commit comments

Comments
 (0)