Skip to content

Commit 42b48c0

Browse files
committed
Lint
1 parent 7bb036d commit 42b48c0

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/execution/service.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -535,11 +535,8 @@ export class ServiceScriptExecution extends BaseExecutionWithCommand<ServiceScri
535535
fingerprint,
536536
deferredFingerprint: this.#state.deferredFingerprint,
537537
};
538-
// deleted the `void` as a deliberate lint warning so I come back and
539-
// include info on
540-
// what changed in the fingerprint
541-
adoptee
542-
?.abort({name: 'restart', reason: needsToRestartReason})
538+
void adoptee
539+
.abort({name: 'restart', reason: needsToRestartReason})
543540
.then(() => {
544541
this.#onAdopteeStopped();
545542
});

src/watcher.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function unknownState(state: never) {
6060
}
6161

6262
function unexpectedState(state: WatcherState) {
63-
return new Error(`Unexpected watcher state ${state}`);
63+
return new Error(`Unexpected watcher state ${state.name}`);
6464
}
6565

6666
/**
@@ -544,8 +544,7 @@ export const makeWatcher = (
544544
break;
545545
}
546546
default: {
547-
const expectNever = (_v: never) => {};
548-
expectNever(kind);
547+
kind satisfies never;
549548
operation = 'altered in an unknown way';
550549
}
551550
}

0 commit comments

Comments
 (0)