File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -1058,8 +1058,7 @@ async function loadFileInHTML(fileEl, fileSha) {
10581058
10591059
10601060 // if file is not modified; fetch from Git
1061- if ( ! modifiedFiles [ fileSha ]
1062- || ( modifiedFiles [ fileSha ] && modifiedFiles [ fileSha ] . dir !== treeLoc . join ( ',' ) ) {
1061+ if ( ! modifiedFiles [ fileSha ] ) {
10631062
10641063 // if not already loading, start loading
10651064 if ( loader . style . opacity != '1' ) {
@@ -2482,13 +2481,6 @@ function protectUnsavedCode() {
24822481 // load file
24832482 loadFileInHTML ( selectedElSha , getAttr ( selectedElSha , 'sha' ) ) ;
24842483
2485- } else if ( selBranch !== branch ) {
2486-
2487- // if selected file is from another branch
2488-
2489- // load file
2490- loadFileInHTML ( selectedElSha , getAttr ( selectedElSha , 'sha' ) ) ;
2491-
24922484 }
24932485
24942486 }
You can’t perform that action at this time.
0 commit comments