Skip to content

Commit 5d1b292

Browse files
committed
Add comment about update check
1 parent 7b3a55e commit 5d1b292

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extensions/ql-vscode/src/databases/github-database-updates.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ export function isNewerDatabaseAvailable(
7878
return null;
7979
}
8080

81+
// We only consider databases to be updated if they have a different `commit_oid` than the
82+
// one we have stored. If they have the same `commit_oid`, then they are the same database.
83+
// This means that older databases which do not have a `commit_oid` (`null`) are always
84+
// considered up-to-date.
8185
if (matchingDatabase.commit_oid === origin.commitOid) {
8286
return null;
8387
}

0 commit comments

Comments
 (0)