Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor cast function in utils.py #1340

Merged
merged 1 commit into from
Feb 4, 2024
Merged

Conversation

Dr-Blank
Copy link
Contributor

@Dr-Blank Dr-Blank commented Jan 16, 2024

Description

ref: #1302 (comment)

  • less indentation, more readable code
  • early return

Type of change

Please delete options that are not relevant.

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 added or updated the docstring for new or existing methods
  • I have added tests when applicable

- less indentation, more readable code
- early return
@JonnyWong16 JonnyWong16 merged commit ba384e0 into pkkid:master Feb 4, 2024
5 checks passed
@Dr-Blank Dr-Blank deleted the code-quality branch February 5, 2024 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants