Skip to content

Conversation

xuwei-k
Copy link
Member

@xuwei-k xuwei-k commented Jun 24, 2023

  • remove unused type params
  • use withFilter if possible
  • use collectFirst instead of collect and headOption
  • use length instead of size if Array or String
  • use foreach instead of map

- remove unused type params
- use `withFilter` if possible
- use `collectFirst` instead of `collect` and `headOption`
- use `length` instead of `size` if `Array` or `String`
- use `foreach` instead of `map`
Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

Thanks!

@eed3si9n eed3si9n merged commit 5fc0a4c into sbt:1.9.x Jun 25, 2023
@xuwei-k xuwei-k deleted the trivial-refactoring branch June 25, 2023 21:42
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