Skip to content

tidepool-merge: force unwrap to remove Optional in front of two markdown headers - #2272

Merged
marionbarker merged 1 commit into
LoopKit:tidepool-mergefrom
loopandlearn:fix_md_format
Apr 6, 2025
Merged

tidepool-merge: force unwrap to remove Optional in front of two markdown headers#2272
marionbarker merged 1 commit into
LoopKit:tidepool-mergefrom
loopandlearn:fix_md_format

Conversation

@marionbarker

Copy link
Copy Markdown
Contributor

Purpose:

Two of the headers in the Loop Report are printed as optionals, e.g.:

Optional(## WatchDataManager

Optional(## StatusExtensionDataManager

This messes up the syntax and makes it difficult to automatically parse the report.

Approach:

Add a force unwrap to the two lines of code.

Test:

With this change, all the markdown headers are now printed as expected, e.g.:

## WatchDataManager

## StatusExtensionDataManager

@marionbarker
marionbarker requested a review from ps2March 21, 2025 22:53
@marionbarkermarionbarker changed the title force unwrap to remove Optional in front of two markdown headerstidepool-merge: force unwrap to remove Optional in front of two markdown headersApr 3, 2025
ps2
ps2 approved these changes Apr 6, 2025

@ps2ps2 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@marionbarker
marionbarker merged commit d0caf2b into LoopKit:tidepool-mergeApr 6, 2025
@marionbarker
marionbarker deleted the fix_md_format branch April 6, 2025 18:30
Sign up for freeto 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.

2 participants

@marionbarker@ps2