Skip to content

Commit

Permalink
style: Really use explicit imports for process.env and Buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli committed Dec 30, 2024
1 parent 1ab037d commit 374c19c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compose/composer.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { env } from 'node:process'
import { Directives } from '../doc/directives.ts'
import { Document } from '../doc/Document.ts'
import type { ErrorCode } from '../errors.ts'
Expand Down Expand Up @@ -166,7 +167,7 @@ export class Composer<
*next(
token: Token
): Generator<Document.Parsed<Contents, Strict>, void, unknown> {
if (process.env.LOG_STREAM) console.dir(token, { depth: null })
if (env.LOG_STREAM) console.dir(token, { depth: null })
switch (token.type) {
case 'directive':
this.directives.add(token.source, (offset, message, warning) => {
Expand Down

0 comments on commit 374c19c

Please sign in to comment.