Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 374c19c

Browse files
committed
style: Really use explicit imports for process.env and Buffer
1 parent 1ab037d commit 374c19c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compose/composer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { env } from 'node:process'
12
import { Directives } from '../doc/directives.ts'
23
import { Document } from '../doc/Document.ts'
34
import type { ErrorCode } from '../errors.ts'
@@ -166,7 +167,7 @@ export class Composer<
166167
*next(
167168
token: Token
168169
): Generator<Document.Parsed<Contents, Strict>, void, unknown> {
169-
if (process.env.LOG_STREAM) console.dir(token, { depth: null })
170+
if (env.LOG_STREAM) console.dir(token, { depth: null })
170171
switch (token.type) {
171172
case 'directive':
172173
this.directives.add(token.source, (offset, message, warning) => {

0 commit comments

Comments
 (0)