Skip to content

Commit d3adbcc

Browse files
shorten error check
1 parent b56a5f3 commit d3adbcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/src/cli/commands/app/execute.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default class Execute extends AppLinkedCommand {
4646
query: flags.query,
4747
})
4848

49-
if (errors && errors.length > 0) {
49+
if (errors?.length) {
5050
const errorMessages = errors.map((error) => `${error.field?.join('.') ?? 'unknown'}: ${error.message}`).join('\n')
5151
renderWarning({
5252
headline: 'Bulk operation errors.',

0 commit comments

Comments
 (0)