Skip to content

Commit 52c7b5e

Browse files
committed
Update gitauth.js
1 parent 43eff8b commit 52c7b5e

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

git/gitauth.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -114,21 +114,10 @@ window.onload = async () => {
114114
// get git token from Github
115115
await getGithubToken(gitCode);
116116

117-
118117
// clear modified repos
119118
modifiedRepos = {};
120119
updateModReposLS();
121120

122-
// if navigating in repo
123-
if (treeLoc[1] !== '') {
124-
125-
// get repo obj from git
126-
// and save to modified repos
127-
fetchRepoAndSaveToModRepos(treeLoc);
128-
129-
}
130-
131-
132121
if (messageEl.textContent === 'Logging in...') {
133122
hideMessage();
134123
}
@@ -209,20 +198,9 @@ window.onload = async () => {
209198
// get git token from Github
210199
await getGithubToken(gitCode);
211200

212-
213201
// clear modified repos
214202
modifiedRepos = {};
215203
updateModReposLS();
216-
217-
// if navigating in repo
218-
if (treeLoc[1] !== '') {
219-
220-
// get repo obj from git
221-
// and save to modified repos
222-
fetchRepoAndSaveToModRepos(treeLoc);
223-
224-
}
225-
226204

227205
hideMessage();
228206

0 commit comments

Comments
 (0)