Skip to content

Commit 2b0ab73

Browse files
committed
clean: Improve code
1 parent 9006bbf commit 2b0ab73

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/http-utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import fetch from 'node-fetch';
22

3+
// eslint-disable-next-line @typescript-eslint/ban-types
34
export function put(url: string, payload: object): Promise<unknown> {
45
return fetch(url, {
56
method: 'PUT',

src/logger.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
// eslint-disable-next-line @typescript-eslint/ban-types
12
export function print(message: string, ...params: (string | number | object)[]): void {
23
console.log(message, ...params);
34
}
45

6+
// eslint-disable-next-line @typescript-eslint/ban-types
57
export function error(message: string, ...params: (string | number | object)[]): void {
68
console.error(message, params);
79
}

0 commit comments

Comments
 (0)