We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d34bcc1 commit d36a77aCopy full SHA for d36a77a
src/watch.ts
@@ -109,13 +109,12 @@ async function loop(
109
return;
110
}
111
112
- if (change.deleted) {
113
- // Delete package directly in index
114
- // Filter does not support async/await but there is no concurrency issue with this
115
- throw new Error('deleted');
116
- }
117
-
118
try {
+ if (change.deleted) {
+ // Delete package directly in index
+ // Filter does not support async/await but there is no concurrency issue with this
+ throw new Error('deleted');
+ }
119
const res = await npm.getDoc(change.id, change.changes[0].rev);
120
121
if (isFailure(res)) {
0 commit comments