Skip to content

Cleanup code#416

Merged
mikepenz merged 1 commit intomikepenz:developfrom
keta1:style
Jun 15, 2025
Merged

Cleanup code#416
mikepenz merged 1 commit intomikepenz:developfrom
keta1:style

Conversation

@keta1
Copy link
Contributor

@keta1 keta1 commented Jun 10, 2025

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build configuration change
  • Other (please describe):

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.

  • Test A
  • Test B

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@keta1 keta1 changed the title - Cleanup code Cleanup code Jun 10, 2025
@mikepenz mikepenz requested a review from Copilot June 15, 2025 07:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR cleans up the code by refactoring existing logic and refining import statements.

  • In MarkdownText.kt, the onTextLayout assignment has been refactored to use the let expression for cleaner, more concise code.
  • In MarkdownCode.kt, wildcard imports have been replaced with explicit named imports for better clarity and maintainability.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
multiplatform-markdown-renderer/src/commonMain/kotlin/com/mikepenz/markdown/compose/elements/MarkdownText.kt Refactored onTextLayout assignment using let for simplified logic.
multiplatform-markdown-renderer/src/commonMain/kotlin/com/mikepenz/markdown/compose/elements/MarkdownCode.kt Replaced wildcard imports with explicit imports to improve clarity.

@mikepenz mikepenz merged commit 5d4b0e8 into mikepenz:develop Jun 15, 2025
2 checks passed
@keta1 keta1 deleted the style branch June 16, 2025 02:37
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.

2 participants