Skip to content

Conversation

@zhanluxianshen
Copy link
Contributor

No description provided.

Signed-off-by: zhanluxianshen <[email protected]>
@zenosai zenosai changed the title redundancy code cleans. Clean redundant code. Jun 30, 2025
@zenosai zenosai requested a review from Copilot June 30, 2025 02:17
@zenosai zenosai self-assigned this Jun 30, 2025
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 removes redundant code snippets that were duplicated across several modules.

  • Eliminated duplicate if __name__ == '__main__': pass block in pdf_parse_union_core_v2_llm.py
  • Removed an extra return SupportedPdfParseMethod.OCR statement in filter/__init__.py
  • Cleaned up duplicate return images in data/utils.py

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
magic_pdf/pdf_parse_union_core_v2_llm.py Removed redundant __main__ block
magic_pdf/filter/init.py Deleted duplicate return statement in classifier
magic_pdf/data/utils.py Eliminated extra return images

return new_pdf_info_dict


if __name__ == '__main__':
Copy link

Copilot AI Jun 30, 2025

Choose a reason for hiding this comment

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

[nitpick] Since the __main__ block is a no-op (pass), consider removing it entirely to reduce dead code.

Copilot uses AI. Check for mistakes.
@zenosai zenosai merged commit ae5b80f into Yuliang-Liu:main Jun 30, 2025
@zenosai
Copy link
Collaborator

zenosai commented Jun 30, 2025

Thanks!

@zhanluxianshen zhanluxianshen deleted the redundancy-code branch June 30, 2025 03:05
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