mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-20 20:04:48 +08:00
General code quality improvement
This commit is contained in:
@ -736,7 +736,6 @@ function initEditor() {
|
||||
}).trigger('keyup');
|
||||
|
||||
editArea = $('.repository.editor textarea#edit_area');
|
||||
|
||||
if (!editArea.length)
|
||||
return;
|
||||
|
||||
@ -779,9 +778,8 @@ function initEditor() {
|
||||
}
|
||||
|
||||
// Else we are going to use CodeMirror
|
||||
if (!cmEditor) {
|
||||
if (!setCodeMirror())
|
||||
return;
|
||||
if (!cmEditor && !setCodeMirror()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (mode) {
|
||||
|
Reference in New Issue
Block a user