Skip to content

Commit 1112166

Browse files
committed
Update files.js
1 parent f2bbd9f commit 1112166

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

files.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,24 +174,24 @@ function onFileEclipsedInCache(oldSha, newSha, newFile) {
174174
updateModFilesLS();
175175

176176

177-
// set 1 minute timeout to remove updated files
177+
// set 1 minute timeout to remove eclipsed files
178178
window.setTimeout(() => {
179179

180-
// if old sha and old sha eclipsed file exist
181-
if (oldSha && modifiedFiles[oldSha]) {
180+
// if old eclipsed file exists
181+
if (modifiedFiles[oldSha]) {
182182

183-
// remove the updated file under old sha as key
183+
// delete the old eclipsed file
184184
// from modifiedFiles
185185
deleteModFile(oldSha);
186186

187187
}
188188

189-
// if not edited updated file under new sha as key
189+
// if not edited eclipsed file under new sha as key
190190
// while in timeout (file is still eclipsed)
191191
if (modifiedFiles[newSha] &&
192192
modifiedFiles[newSha].eclipsed) {
193193

194-
// remove the updated file under new sha as key
194+
// remove the eclipsed file under new sha as key
195195
// from modifiedFiles
196196
deleteModFile(newSha);
197197

0 commit comments

Comments
 (0)