Skip to content

Remove redundant min() after guards in Span#4096

Open
Ironsing wants to merge 1 commit intoTextualize:masterfrom
Ironsing:master
Open

Remove redundant min() after guards in Span#4096
Ironsing wants to merge 1 commit intoTextualize:masterfrom
Ironsing:master

Conversation

@Ironsing
Copy link
Copy Markdown

Type of changes

  • Bug fix
  • New feature
  • Documentation / docstrings
  • Tests
  • Other

AI?

  • AI was used to generate this PR

AI generated PRs may be accepted, but only if @willmcgugan has responded on an issue or discussion.

Checklist

  • I've run the latest black with default args on new code.
  • I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate (see note about typos above).
  • I've added tests for new code.
  • I accept that @willmcgugan may be pedantic in the code review.

Description

Removes redundant calls to min() in Span.right_crop and Span.split, since these have guard clauses right before the redundant call.

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