Skip to content

Commit 2c64ad4

Browse files
authored
Update init.ts
1 parent 801532b commit 2c64ad4

File tree

1 file changed

+1
-2
lines changed
  • packages/openapi-ts/src/config

1 file changed

+1
-2
lines changed

packages/openapi-ts/src/config/init.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { getPlugins } from './plugins';
1919
* @internal
2020
*/
2121
export const detectInteractiveSession = (): boolean =>
22-
!!(
22+
Boolean(
2323
process.stdin.isTTY &&
2424
process.stdout.isTTY &&
2525
!process.env.CI &&
@@ -78,7 +78,6 @@ export const initConfigs = async (
7878
useOptions = true,
7979
} = userConfig;
8080

81-
// Use environment-aware detection only when user doesn't explicitly set interactive
8281
const interactive =
8382
userConfig.interactive !== undefined
8483
? userConfig.interactive

0 commit comments

Comments
 (0)