Skip to content

Comments

refactor(linter): use Expression::is_super#7850

Merged
graphite-app[bot] merged 1 commit intomainfrom
12-13-refactor_linter_use_expression_is_super_
Dec 13, 2024
Merged

refactor(linter): use Expression::is_super#7850
graphite-app[bot] merged 1 commit intomainfrom
12-13-refactor_linter_use_expression_is_super_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Dec 13, 2024

Simplify code by using Expression::is_super which was introduced in #7831.

Also remove a lifetime bound which is unnecessary and replace use of bool::then (which I always find hard to read) with more explicit code.

Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added A-linter Area - Linter C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Dec 13, 2024
@overlookmotel overlookmotel marked this pull request as ready for review December 13, 2024 14:00
@codspeed-hq
Copy link

codspeed-hq bot commented Dec 13, 2024

CodSpeed Performance Report

Merging #7850 will not alter performance

Comparing 12-13-refactor_linter_use_expression_is_super_ (e55ab24) with main (5d42df8)

Summary

✅ 29 untouched benchmarks

@Dunqing Dunqing added the 0-merge Merge with Graphite Merge Queue label Dec 13, 2024
Copy link
Member

Dunqing commented Dec 13, 2024

Merge activity

  • Dec 13, 9:34 AM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Dec 13, 9:35 AM EST: A user added this pull request to the Graphite merge queue.
  • Dec 13, 9:51 AM EST: A user merged this pull request with the Graphite merge queue.

Dunqing pushed a commit that referenced this pull request Dec 13, 2024
Simplify code by using `Expression::is_super` which was introduced in #7831.

Also remove a lifetime bound which is unnecessary and replace use of `bool::then` (which I always find hard to read) with more explicit code.
@Dunqing Dunqing force-pushed the 12-13-refactor_linter_use_expression_is_super_ branch from 179ea18 to 8f3444f Compare December 13, 2024 14:40
Simplify code by using `Expression::is_super` which was introduced in #7831.

Also remove a lifetime bound which is unnecessary and replace use of `bool::then` (which I always find hard to read) with more explicit code.
@Dunqing Dunqing force-pushed the 12-13-refactor_linter_use_expression_is_super_ branch from 8f3444f to e55ab24 Compare December 13, 2024 14:47
@graphite-app graphite-app bot merged commit e55ab24 into main Dec 13, 2024
@graphite-app graphite-app bot deleted the 12-13-refactor_linter_use_expression_is_super_ branch December 13, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0-merge Merge with Graphite Merge Queue A-linter Area - Linter C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants