Skip to content

Commit 7ed5485

Browse files
committed
chore: remove unnecessary asyncs and awaits
1 parent 81cd110 commit 7ed5485

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

templates/cli/lib/commands/push.js.twig

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -450,12 +450,12 @@ const getObjectChanges = (remote, local, index, what) => {
450450
return changes;
451451
}
452452

453-
const createAttribute = async (databaseId, collectionId, attribute) => {
453+
const createAttribute = (databaseId, collectionId, attribute) => {
454454
switch (attribute.type) {
455455
case 'string':
456456
switch (attribute.format) {
457457
case 'email':
458-
return await databasesCreateEmailAttribute({
458+
return databasesCreateEmailAttribute({
459459
databaseId,
460460
collectionId,
461461
key: attribute.key,
@@ -465,7 +465,7 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
465465
parseOutput: false
466466
})
467467
case 'url':
468-
return await databasesCreateUrlAttribute({
468+
return databasesCreateUrlAttribute({
469469
databaseId,
470470
collectionId,
471471
key: attribute.key,
@@ -475,7 +475,7 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
475475
parseOutput: false
476476
})
477477
case 'ip':
478-
return await databasesCreateIpAttribute({
478+
return databasesCreateIpAttribute({
479479
databaseId,
480480
collectionId,
481481
key: attribute.key,
@@ -485,7 +485,7 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
485485
parseOutput: false
486486
})
487487
case 'enum':
488-
return await databasesCreateEnumAttribute({
488+
return databasesCreateEnumAttribute({
489489
databaseId,
490490
collectionId,
491491
key: attribute.key,
@@ -496,7 +496,7 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
496496
parseOutput: false
497497
})
498498
default:
499-
return await databasesCreateStringAttribute({
499+
return databasesCreateStringAttribute({
500500
databaseId,
501501
collectionId,
502502
key: attribute.key,
@@ -509,7 +509,7 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
509509

510510
}
511511
case 'integer':
512-
return await databasesCreateIntegerAttribute({
512+
return databasesCreateIntegerAttribute({
513513
databaseId,
514514
collectionId,
515515
key: attribute.key,
@@ -567,12 +567,12 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
567567
}
568568
}
569569

570-
const updateAttribute = async (databaseId, collectionId, attribute) => {
570+
const updateAttribute = (databaseId, collectionId, attribute) => {
571571
switch (attribute.type) {
572572
case 'string':
573573
switch (attribute.format) {
574574
case 'email':
575-
return await databasesUpdateEmailAttribute({
575+
return databasesUpdateEmailAttribute({
576576
databaseId,
577577
collectionId,
578578
key: attribute.key,
@@ -582,7 +582,7 @@ const updateAttribute = async (databaseId, collectionId, attribute) => {
582582
parseOutput: false
583583
})
584584
case 'url':
585-
return await databasesUpdateUrlAttribute({
585+
return databasesUpdateUrlAttribute({
586586
databaseId,
587587
collectionId,
588588
key: attribute.key,
@@ -592,7 +592,7 @@ const updateAttribute = async (databaseId, collectionId, attribute) => {
592592
parseOutput: false
593593
})
594594
case 'ip':
595-
return await databasesUpdateIpAttribute({
595+
return databasesUpdateIpAttribute({
596596
databaseId,
597597
collectionId,
598598
key: attribute.key,
@@ -602,7 +602,7 @@ const updateAttribute = async (databaseId, collectionId, attribute) => {
602602
parseOutput: false
603603
})
604604
case 'enum':
605-
return await databasesUpdateEnumAttribute({
605+
return databasesUpdateEnumAttribute({
606606
databaseId,
607607
collectionId,
608608
key: attribute.key,
@@ -613,7 +613,7 @@ const updateAttribute = async (databaseId, collectionId, attribute) => {
613613
parseOutput: false
614614
})
615615
default:
616-
return await databasesUpdateStringAttribute({
616+
return databasesUpdateStringAttribute({
617617
databaseId,
618618
collectionId,
619619
key: attribute.key,
@@ -626,7 +626,7 @@ const updateAttribute = async (databaseId, collectionId, attribute) => {
626626

627627
}
628628
case 'integer':
629-
return await databasesUpdateIntegerAttribute({
629+
return databasesUpdateIntegerAttribute({
630630
databaseId,
631631
collectionId,
632632
key: attribute.key,

0 commit comments

Comments
 (0)