mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 04:28:29 -05:00
REFACTOR: removes useless conditional (#9674)
We already check if there's a post in the line before.
This commit is contained in:
@@ -20,11 +20,9 @@ export default class LinkLookup {
|
||||
if (linkInfo) {
|
||||
if (post) {
|
||||
// Skip edits to the OP
|
||||
if (post) {
|
||||
const postNumber = post.get("post_number");
|
||||
if (postNumber === 1 || postNumber === linkInfo.post_number) {
|
||||
return NO_RESULT;
|
||||
}
|
||||
const postNumber = post.get("post_number");
|
||||
if (postNumber === 1 || postNumber === linkInfo.post_number) {
|
||||
return NO_RESULT;
|
||||
}
|
||||
|
||||
// Don't warn on older posts
|
||||
|
||||
Reference in New Issue
Block a user