Skip to content

Commit 720b6c4

Browse files
committed
fix: remove unused policy variable in update-check (#293)
Dead code — `registryPolicy` is created fresh in each `fetchLatest` call.
1 parent d30d7d9 commit 720b6c4

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/update-check.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@ export function createUpdateChecker(ports) {
117117
export function defaultPorts(registryUrl, opts = {}) {
118118
const { timeoutMs = DEFAULT_FETCH_TIMEOUT_MS } = opts;
119119

120-
/** @type {import('@git-stunts/alfred').Policy|null} */
121-
let policy = null;
122-
123120
return {
124121
readCache() {
125122
try {

0 commit comments

Comments
 (0)