We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a414f1a + dfc658f commit 486155aCopy full SHA for 486155a
src/cli/run.ts
@@ -53,7 +53,12 @@ export async function run(program: Command): Promise<void> {
53
* @returns void
54
*/
55
async function runScanMode(opts: Options): Promise<void> {
56
- const envPath = opts.envFlag || (fs.existsSync('.env') ? '.env' : undefined);
+ const envPath =
57
+ typeof opts.envFlag === 'string'
58
+ ? opts.envFlag
59
+ : fs.existsSync('.env')
60
+ ? '.env'
61
+ : undefined;
62
63
const { exitWithError } = await scanUsage({
64
cwd: opts.cwd,
0 commit comments