Skip to content

Commit

Permalink
[skip ci] Update site
Browse files Browse the repository at this point in the history
  • Loading branch information
ci-build committed Nov 5, 2023
1 parent db85648 commit 60ec34c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2947,7 +2947,7 @@ <h3 id="no-multiline-ternary"><a class="anchor" href="#no-multiline-ternary"></a
<h3 id="if-as-a-modifier"><a class="anchor" href="#if-as-a-modifier"></a><a class="link" href="#if-as-a-modifier"><code>if</code> as a Modifier</a></h3>
<div class="paragraph">
<p>Prefer modifier <code>if</code>/<code>unless</code> usage when you have a single-line body.
Another good alternative is the usage of control flow <code>&amp;&amp;</code>/<code>||</code>.</p>
Another good alternative is the usage of control flow <code>and</code>/<code>or</code>.</p>
</div>
<div class="listingblock">
<div class="content">
Expand All @@ -2960,7 +2960,7 @@ <h3 id="if-as-a-modifier"><a class="anchor" href="#if-as-a-modifier"></a><a clas
<span class="n">do_something</span> <span class="k">if</span> <span class="n">some_condition</span>

<span class="c1"># another good option</span>
<span class="n">some_condition</span> <span class="o">&amp;&amp;</span> <span class="n">do_something</span></code></pre>
<span class="n">some_condition</span> <span class="n">and</span> <span class="n">do_something</span></code></pre>
</div>
</div>
</div>
Expand Down Expand Up @@ -8245,7 +8245,7 @@ <h2 id="spread-the-word"><a class="anchor" href="#spread-the-word"></a><a class=
</div>
<div id="footer">
<div id="footer-text">
Last updated 2023-11-05 06:56:19 UTC
Last updated 2023-11-05 06:57:37 UTC
</div>
</div>
</body>
Expand Down

0 comments on commit 60ec34c

Please sign in to comment.