6

I was looking at a useful answer and found a minor ternary operator syntax error which I suggested an edit for:

// Error: Uncaught SyntaxError: Unexpected token :
num = typeof(num) == 'number' && num % 1 === 0 : num : 0; 
                                               ^
// Fix:
num = typeof(num) == 'number' && num % 1 === 0 ? num : 0; 

Of course, edits must be at least 6 characters, so I had to do some minor format changes. (like adding <!-- language: lang-js --> or <!-- language: lang-none -->)

But my edit was immediately rejected by the first reviewer, even though I mentioned in the edit comment:

fix syntax error for num ternary operator

So it left me wondering, do minor syntax error edit suggestions get rejected and discouraged?

1 Answer 1

6

No.

This edit is fine, and it shouldn't have gotten a reject vote in my opinion.

However, sometimes, such edits do get rejected. There might be plenty reasons, such as the reviewers not being knowledgeable on the subject (bad reason, they should filter their queue), mistaking an answer for a question (obviously, you shouldn't edit out errors in questions), accidentally miss-clicking, etc.

Don't be discouraged by reject votes or rejected edits. Instead, read and ask on meta if what you're doing is okay, and keep up the good work.

1
  • Makes sense, thank you.
    – u-ways
    Sep 5, 2018 at 10:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .