Skip to content

Commit c302f0c

Browse files
committed
Fix lint
1 parent 061c5f2 commit c302f0c

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

packages/eas-cli/src/commands/env/create.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ export default class EnvCreate extends EasCommand {
117117
force,
118118
type,
119119
fileName,
120-
} = await this.promptForMissingFlagsAsync(validatedFlags, args, { graphqlClient, projectId });
120+
} = await this.promptForMissingFlagsAsync(validatedFlags, args, {
121+
graphqlClient,
122+
projectId,
123+
});
121124

122125
const [projectDisplayName, ownerAccount] = await Promise.all([
123126
getDisplayNameForProjectIdAsync(graphqlClient, projectId),
@@ -323,7 +326,7 @@ export default class EnvCreate extends EasCommand {
323326

324327
value = environmentFilePath ? await fs.readFile(environmentFilePath, 'base64') : value;
325328

326-
let newEnvironments = environments ? environments : environment ? [environment] : undefined;
329+
let newEnvironments = environments ?? (environment ? [environment] : undefined);
327330

328331
if (!newEnvironments) {
329332
newEnvironments = await promptVariableEnvironmentAsync({

packages/eas-cli/src/commands/env/list.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,7 @@ export default class EnvList extends EasCommand {
183183
flags: RawListFlags,
184184
{ environment }: { environment?: string }
185185
): ListFlags {
186-
const environments = flags.environment
187-
? flags.environment
188-
: environment
189-
? [environment]
190-
: undefined;
186+
const environments = flags.environment ?? (environment ? [environment] : undefined);
191187

192188
return {
193189
...flags,

0 commit comments

Comments
 (0)