ktlint: Fix no-empty-first-line-in-method-block violations
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
parent
3ae93402cf
commit
3b4a372e3f
6 changed files with 0 additions and 6 deletions
|
|
@ -19,6 +19,5 @@ ktlint_standard_function-signature = disabled
|
||||||
ktlint_standard_max-line-length = disabled
|
ktlint_standard_max-line-length = disabled
|
||||||
ktlint_standard_mixed-condition-operators = disabled
|
ktlint_standard_mixed-condition-operators = disabled
|
||||||
ktlint_standard_no-empty-first-line-in-class-body = disabled
|
ktlint_standard_no-empty-first-line-in-class-body = disabled
|
||||||
ktlint_standard_no-empty-first-line-in-method-block = disabled
|
|
||||||
ktlint_standard_package-name = disabled
|
ktlint_standard_package-name = disabled
|
||||||
ktlint_standard_property-naming = disabled
|
ktlint_standard_property-naming = disabled
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,6 @@ class HistoryRecordManagerTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun insertShuffledRelatedSearches(relatedSearches: Collection<SearchHistoryEntry>) {
|
private fun insertShuffledRelatedSearches(relatedSearches: Collection<SearchHistoryEntry>) {
|
||||||
|
|
||||||
// shuffle to make sure the order of items returned by queries depends only on
|
// shuffle to make sure the order of items returned by queries depends only on
|
||||||
// SearchHistoryEntry.creationDate, not on the actual insertion time, so that we can
|
// SearchHistoryEntry.creationDate, not on the actual insertion time, so that we can
|
||||||
// verify that the `ORDER BY` clause does its job
|
// verify that the `ORDER BY` clause does its job
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,6 @@ abstract class StreamDAO : BasicDAO<StreamEntity> {
|
||||||
newerStream.uid = existentMinimalStream.uid
|
newerStream.uid = existentMinimalStream.uid
|
||||||
|
|
||||||
if (!StreamTypeUtil.isLiveStream(newerStream.streamType)) {
|
if (!StreamTypeUtil.isLiveStream(newerStream.streamType)) {
|
||||||
|
|
||||||
// Use the existent upload date if the newer stream does not have a better precision
|
// Use the existent upload date if the newer stream does not have a better precision
|
||||||
// (i.e. is an approximation). This is done to prevent unnecessary changes.
|
// (i.e. is an approximation). This is done to prevent unnecessary changes.
|
||||||
val hasBetterPrecision =
|
val hasBetterPrecision =
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,6 @@ class FeedFragment : BaseStateFragment<FeedState>() {
|
||||||
if (newState == RecyclerView.SCROLL_STATE_IDLE &&
|
if (newState == RecyclerView.SCROLL_STATE_IDLE &&
|
||||||
!recyclerView.canScrollVertically(-1)
|
!recyclerView.canScrollVertically(-1)
|
||||||
) {
|
) {
|
||||||
|
|
||||||
if (tryGetNewItemsLoadedButton()?.isVisible == true) {
|
if (tryGetNewItemsLoadedButton()?.isVisible == true) {
|
||||||
hideNewItemsLoaded(true)
|
hideNewItemsLoaded(true)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,6 @@ private fun exportJustUrls(playlist: List<PlaylistStreamEntry>): String {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun exportAsYoutubeTempPlaylist(playlist: List<PlaylistStreamEntry>): String {
|
private fun exportAsYoutubeTempPlaylist(playlist: List<PlaylistStreamEntry>): String {
|
||||||
|
|
||||||
val videoIDs = playlist.asReversed().asSequence()
|
val videoIDs = playlist.asReversed().asSequence()
|
||||||
.mapNotNull { getYouTubeId(it.streamEntity.url) }
|
.mapNotNull { getYouTubeId(it.streamEntity.url) }
|
||||||
.take(50) // YouTube limitation: temp playlists can't have more than 50 items
|
.take(50) // YouTube limitation: temp playlists can't have more than 50 items
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,6 @@ object PoTokenProviderImpl : PoTokenProvider {
|
||||||
webPoTokenGenerator!!.isExpired()
|
webPoTokenGenerator!!.isExpired()
|
||||||
|
|
||||||
if (shouldRecreate) {
|
if (shouldRecreate) {
|
||||||
|
|
||||||
val innertubeClientRequestInfo = InnertubeClientRequestInfo.ofWebClient()
|
val innertubeClientRequestInfo = InnertubeClientRequestInfo.ofWebClient()
|
||||||
innertubeClientRequestInfo.clientInfo.clientVersion =
|
innertubeClientRequestInfo.clientInfo.clientVersion =
|
||||||
YoutubeParsingHelper.getClientVersion()
|
YoutubeParsingHelper.getClientVersion()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue