Skip to content

Commit

Permalink
Fix format/lint in main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tufandevrim committed Mar 25, 2024
1 parent 1252fd1 commit 4e4dea5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1212,8 +1212,8 @@ function generateDecode(ctx: Context, fullName: string, messageDesc: DescriptorP
isOptionalProperty(field, messageDesc.options, options, currentFile.isProto3Syntax);

if (isRepeated(field)) {
const maybeNonNullAssertion = ctx.options.useOptionals === "all" || ctx.options.useOptionals === "deprecatedOnly" ? "!" : "";

const maybeNonNullAssertion =
ctx.options.useOptionals === "all" || ctx.options.useOptionals === "deprecatedOnly" ? "!" : "";
const mapType = detectMapType(ctx, messageDesc, field);
if (mapType) {
// We need a unique const within the `cast` statement
Expand Down

0 comments on commit 4e4dea5

Please sign in to comment.