mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Deploying to gh-pages from @ 243071700d
🚀
This commit is contained in:
parent
b608e6baa3
commit
5aadcd0133
122 changed files with 736 additions and 736 deletions
|
@ -760,7 +760,7 @@
|
|||
<span class="n">:ok</span>
|
||||
<span class="k">end</span></code></pre>
|
||||
<p>And should be rewritten to the following:</p>
|
||||
<pre><code class="language-crystal"><span class="k">if</span> s.emtpy?
|
||||
<pre><code class="language-crystal"><span class="k">if</span> s.empty?
|
||||
<span class="n">:ok</span>
|
||||
<span class="k">end</span></code></pre>
|
||||
<p>It is pretty difficult to wrap your head around a block of code
|
||||
|
@ -808,7 +808,7 @@ that is executed if a negated condition is NOT met.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/f9b6b176/src/ameba/rule/style/negated_conditions_in_unless.cr#L29" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/24307170/src/ameba/rule/style/negated_conditions_in_unless.cr#L29" target="_blank">
|
||||
ameba/rule/style/negated_conditions_in_unless.cr
|
||||
</a>
|
||||
|
||||
|
@ -1094,7 +1094,7 @@ that is executed if a negated condition is NOT met.</p>
|
|||
<span class="n">:ok</span>
|
||||
<span class="k">end</span></code></pre>
|
||||
<p>And should be rewritten to the following:</p>
|
||||
<pre><code class="language-crystal"><span class="k">if</span> s.emtpy?
|
||||
<pre><code class="language-crystal"><span class="k">if</span> s.empty?
|
||||
<span class="n">:ok</span>
|
||||
<span class="k">end</span></code></pre>
|
||||
<p>It is pretty difficult to wrap your head around a block of code
|
||||
|
@ -1107,7 +1107,7 @@ that is executed if a negated condition is NOT met.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/f9b6b176/src/ameba/rule/style/negated_conditions_in_unless.cr#L29" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/24307170/src/ameba/rule/style/negated_conditions_in_unless.cr#L29" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1288,7 +1288,7 @@ that is executed if a negated condition is NOT met.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/f9b6b176/src/ameba/rule/style/negated_conditions_in_unless.cr#L36" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/24307170/src/ameba/rule/style/negated_conditions_in_unless.cr#L36" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue