Skip to content

Commit c416f00

Browse files
author
Gusted
committed
Simplify else
1 parent 4791c03 commit c416f00

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web_src/js/features/repo-diff.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ export function initRepoDiffConversationForm() {
3232
$markdownEditorTextArea.prop('required', true);
3333
form.get(0).reportValidity();
3434
return;
35-
} else {
36-
$markdownEditorTextArea.prop('required', false);
3735
}
36+
$markdownEditorTextArea.prop('required', false);
3837

3938
const newConversationHolder = $(await $.post(form.attr('action'), form.serialize()));
4039
const {path, side, idx} = newConversationHolder.data();

0 commit comments

Comments
 (0)