Skip to content

Remove nil default values from primary content section.#1083

Draft
sofiaromorales wants to merge 1 commit into
swiftlang:mainfrom
sofiaromorales:r139195428
Draft

Remove nil default values from primary content section.#1083
sofiaromorales wants to merge 1 commit into
swiftlang:mainfrom
sofiaromorales:r139195428

Conversation

@sofiaromorales

Copy link
Copy Markdown
Contributor

Bug/issue #, if applicable: 139195428

Summary

The encoder for the primary content section now checks for nil values within the collection, instead of just checking for empty arrays. Previously, this led to issues when calculating the index for the replace patcher.

Dependencies

Describe any dependencies this PR might have, such as an associated branch in another repository.

Testing

Describe how a reviewer can test the functionality of your PR. Provide test content to test with if
applicable.

Steps:

  1. Provide setup instructions.
  2. Explain in detail how the functionality can be tested.

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added tests
  • Ran the ./bin/test script and it succeeded
  • Updated documentation if necessary

The enconder for primary content section now checks for nil values inside the collection, when before it weas checking for empty arrays,
causing issues when calculating the index for the replace patcher.

rdar://139195428
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant