Commit 007dc66
committed
Fix rubocop Style/IfUnlessModifier
Addressing:
lib/openscap/source.rb:40:7: C: Style/IfUnlessModifier: Favor modifier unless usage when having a single-line body. Another good alternative is the usage of control flow &&/||.
unless OpenSCAP.oscap_source_validate(@raw, XmlReporterCallback, e).zero?
^^^^^^1 parent 905eb64 commit 007dc66
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 40 | + | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
| |||
0 commit comments