Skip to content

Commit 0fcb58a

Browse files
chore: unbind console
1 parent 84e297d commit 0fcb58a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/greet.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import { GreetOptions } from "./types.js";
22

3-
const boundConsoleLog = console.log.bind(console);
4-
53
export function greet(options: GreetOptions | string) {
64
const {
7-
logger = boundConsoleLog,
5+
logger = console.log.bind(console),
86
message,
97
times = 1,
108
} = typeof options === "string" ? { message: options } : options;

0 commit comments

Comments
 (0)