mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +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