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 0fbba3e commit bd92d68Copy full SHA for bd92d68
src/lint/rules/spacing.rs
@@ -685,13 +685,10 @@ pub type NspUnaryArgs = ZeroRange;
685
impl NspUnaryArgs {
686
fn is_exception(node: &UnaryExpressionContent) -> bool {
687
// Defined keyword counts as UnaryOp for DLS, but we allow space after it
688
- match node.operation.get_token() {
689
- Some(token) => match token.kind {
690
- TokenKind::Defined => true,
691
- _ => false,
692
- },
693
- None => false,
+ if let Some(token) = node.operation.get_token() {
+ return token.kind == TokenKind::Defined
694
}
+ false
695
696
697
pub fn from_unary_expr(node: &UnaryExpressionContent)
0 commit comments