We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa2071c commit e24364bCopy full SHA for e24364b
src/lint/rules/spacing.rs
@@ -679,13 +679,10 @@ pub type NspUnaryArgs = ZeroRange;
679
impl NspUnaryArgs {
680
fn is_exception(node: &UnaryExpressionContent) -> bool {
681
// Defined keyword counts as UnaryOp for DLS, but we allow space after it
682
- match node.operation.get_token() {
683
- Some(token) => match token.kind {
684
- TokenKind::Defined => true,
685
- _ => false,
686
- },
687
- None => false,
+ if let Some(token) = node.operation.get_token() {
+ return token.kind == TokenKind::Defined
688
}
+ false
689
690
691
pub fn from_unary_expr(node: &UnaryExpressionContent)
0 commit comments