Skip to content

Commit 6ccbf56

Browse files
authored
fix(fmt): simplify boolean expression in Solidity formatter (#12275)
1 parent 1c7a30a commit 6ccbf56

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

crates/fmt/src/state/sol.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,6 @@ impl<'ast> State<'_, 'ast> {
565565
if !skip_returns
566566
&& let Some(ret) = returns
567567
&& !ret.is_empty()
568-
&& let Some(ret) = returns
569568
{
570569
if !self.handle_span(self.cursor.span(ret.span.lo()), false) {
571570
if !self.is_bol_or_only_ind() && !self.last_token_is_space() {

0 commit comments

Comments
 (0)