Skip to content

Commit 8dc2e39

Browse files
committed
fix: removing unnecessary eslint disable comments
1 parent 768e09d commit 8dc2e39

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

src/CreateDestroy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function ready(
118118
} else if (descriptor.set != null) {
119119
kind = 'set';
120120
}
121-
const f: Function = descriptor[kind]; // eslint-disable-line @typescript-eslint/ban-types
121+
const f: Function = descriptor[kind];
122122
if (typeof f !== 'function') {
123123
throw new TypeError(`${key} is not a function`);
124124
}

src/CreateDestroyStartStop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function ready(
238238
} else if (descriptor.set != null) {
239239
kind = 'set';
240240
}
241-
const f: Function = descriptor[kind]; // eslint-disable-line @typescript-eslint/ban-types
241+
const f: Function = descriptor[kind];
242242
if (typeof f !== 'function') {
243243
throw new TypeError(`${key} is not a function`);
244244
}

src/StartStop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function ready(
159159
} else if (descriptor.set != null) {
160160
kind = 'set';
161161
}
162-
const f: Function = descriptor[kind]; // eslint-disable-line @typescript-eslint/ban-types
162+
const f: Function = descriptor[kind];
163163
if (typeof f !== 'function') {
164164
throw new TypeError(`${key} is not a function`);
165165
}

src/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ function promise<T = void>(): PromiseDeconstructed<T> {
4242
* This function rewrites the stack trace according to where the wrapped
4343
* function is called, giving a more useful stack trace
4444
*/
45-
// eslint-disable-next-line @typescript-eslint/ban-types
4645
function resetStackTrace(error: Error, decorated?: Function): void {
4746
if (error.stack != null) {
4847
const stackTitle = error.stack.slice(0, error.stack.indexOf('\n') + 1);

0 commit comments

Comments
 (0)