Skip to content

Commit 6bb000d

Browse files
authored
Update filebrowser.js
1 parent 3fed170 commit 6bb000d

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

filebrowser.js

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,16 @@ async function renderSidebarHTML() {
5959

6060
let resp;
6161

62-
try {
63-
64-
// if navigating in repository
65-
if (repo != '') {
62+
// if navigating in repository
63+
if (repo != '') {
6664

67-
// render branch menu
68-
renderBranchMenuHTML();
69-
70-
}
71-
72-
// get items in current tree from git
73-
resp = await git.getItems(treeLoc);
65+
// render branch menu
66+
renderBranchMenuHTML();
7467

7568
}
69+
70+
// get items in current tree from git
71+
resp = await git.getItems(treeLoc);
7672

7773

7874
if (resp.message == 'Not Found') {

0 commit comments

Comments
 (0)