Skip to content

Commit 249f472

Browse files
committed
chore: formatting fix
1 parent 883c01e commit 249f472

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

packages/appsync-modelgen-plugin/src/utils/process-connections-v2.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,14 @@ export function getConnectedFieldV2(
5454
// Find a field on the other side which connected by a @connection and has the same fields[0] as indexName field
5555
const otherSideConnectedField = connectedModel.fields
5656
.filter(f => f.type === model.name)
57-
.find(f => {
58-
return f.directives.find(d => {
59-
return (
57+
.find(f =>
58+
f.directives.find(
59+
d =>
6060
(d.name === 'belongsTo' || d.name === 'hasOne' || d.name === 'hasMany') &&
6161
d.arguments.fields &&
62-
d.arguments.fields[0] === connectedFieldName
63-
);
64-
});
65-
});
62+
d.arguments.fields[0] === connectedFieldName,
63+
),
64+
);
6665
if (otherSideConnectedField) {
6766
return otherSideConnectedField;
6867
}

0 commit comments

Comments
 (0)