Skip to content

Commit 429fce1

Browse files
committed
chore: minor docstring update
1 parent 76cde5a commit 429fce1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/appsync-modelgen-plugin/src/utils/fieldUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ export function getOtherSideBelongsToField(type: string, otherSideModel: CodeGen
2626
}
2727

2828
/**
29-
* Given a model, it returns the primary and sort key fields if present, throws meaningful error otherwise.
29+
* Given a model, it returns the primary and sort key fields if present, an empty list otherwise.
3030
* @param model Codegen Model object
31-
* @returns Array of primary and sort key codegen fields
31+
* @returns Array of primary and sort key codegen fields if present or an ampty list
3232
*/
3333
export function getModelPrimaryKeyComponentFields(model: CodeGenModel): CodeGenField[] {
3434
const primaryKeyField = model.fields.find(field => field.primaryKeyInfo);

0 commit comments

Comments
 (0)