Skip to content

Commit

Permalink
update kotlin version
Browse files Browse the repository at this point in the history
  • Loading branch information
vlaushkin committed Jul 29, 2022
1 parent 6151580 commit 379aa1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ subprojects {
buildscript {
ext {
versions = [
kotlin : '1.3.50',
kotlin : '1.7.10',
code : 1,
name : '1.0.0',
sdk : [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ typealias ResolutionSelector = Iterable<Resolution>.() -> Resolution?
/**
* @return Selector function which always provides the biggest resolution.
*/
fun highestResolution(): ResolutionSelector = { maxBy(Resolution::area) }
fun highestResolution(): ResolutionSelector = { maxByOrNull(Resolution::area) }

/**
* @return Selector function which always provides the smallest resolution.
*/
fun lowestResolution(): ResolutionSelector = { minBy(Resolution::area) }
fun lowestResolution(): ResolutionSelector = { minByOrNull(Resolution::area) }

0 comments on commit 379aa1d

Please sign in to comment.