Skip to content

Avoid depth counting when detecting indentation#11947

Merged
dhruvmanila merged 1 commit intomainfrom
dhruv/stylist-depth
Jun 20, 2024
Merged

Avoid depth counting when detecting indentation#11947
dhruvmanila merged 1 commit intomainfrom
dhruv/stylist-depth

Conversation

@dhruvmanila
Copy link
Member

Summary

This PR avoids the depth counter when detecting indentation from non-logical lines because it seems to never be used. It might have been a leftover when the logic was added originally in #11608.

Test Plan

cargo insta test

@dhruvmanila dhruvmanila added the internal An internal refactor or improvement label Jun 20, 2024
@github-actions
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@dhruvmanila dhruvmanila merged commit a26bd01 into main Jun 20, 2024
@dhruvmanila dhruvmanila deleted the dhruv/stylist-depth branch June 20, 2024 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant