Skip to content

Commit 81ddd5a

Browse files
committed
ktlint: Fix no-empty-first-line-in-method-block violations
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
1 parent 7d5647b commit 81ddd5a

6 files changed

Lines changed: 0 additions & 6 deletions

File tree

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ ktlint_standard_function-signature = disabled
1919
ktlint_standard_max-line-length = disabled
2020
ktlint_standard_mixed-condition-operators = disabled
2121
ktlint_standard_no-empty-first-line-in-class-body = disabled
22-
ktlint_standard_no-empty-first-line-in-method-block = disabled
2322
ktlint_standard_package-name = disabled
2423
ktlint_standard_property-naming = disabled

app/src/androidTest/java/org/schabi/newpipe/local/history/HistoryRecordManagerTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ class HistoryRecordManagerTest {
9898
}
9999

100100
private fun insertShuffledRelatedSearches(relatedSearches: Collection<SearchHistoryEntry>) {
101-
102101
// shuffle to make sure the order of items returned by queries depends only on
103102
// SearchHistoryEntry.creationDate, not on the actual insertion time, so that we can
104103
// verify that the `ORDER BY` clause does its job

app/src/main/java/org/schabi/newpipe/database/stream/dao/StreamDAO.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ abstract class StreamDAO : BasicDAO<StreamEntity> {
9191
newerStream.uid = existentMinimalStream.uid
9292

9393
if (!StreamTypeUtil.isLiveStream(newerStream.streamType)) {
94-
9594
// Use the existent upload date if the newer stream does not have a better precision
9695
// (i.e. is an approximation). This is done to prevent unnecessary changes.
9796
val hasBetterPrecision =

app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ class FeedFragment : BaseStateFragment<FeedState>() {
152152
if (newState == RecyclerView.SCROLL_STATE_IDLE &&
153153
!recyclerView.canScrollVertically(-1)
154154
) {
155-
156155
if (tryGetNewItemsLoadedButton()?.isVisible == true) {
157156
hideNewItemsLoaded(true)
158157
}

app/src/main/java/org/schabi/newpipe/local/playlist/ExportPlaylist.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ private fun exportJustUrls(playlist: List<PlaylistStreamEntry>): String {
4444
}
4545

4646
private fun exportAsYoutubeTempPlaylist(playlist: List<PlaylistStreamEntry>): String {
47-
4847
val videoIDs = playlist.asReversed().asSequence()
4948
.mapNotNull { getYouTubeId(it.streamEntity.url) }
5049
.take(50) // YouTube limitation: temp playlists can't have more than 50 items

app/src/main/java/org/schabi/newpipe/util/potoken/PoTokenProviderImpl.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ object PoTokenProviderImpl : PoTokenProvider {
6060
webPoTokenGenerator!!.isExpired()
6161

6262
if (shouldRecreate) {
63-
6463
val innertubeClientRequestInfo = InnertubeClientRequestInfo.ofWebClient()
6564
innertubeClientRequestInfo.clientInfo.clientVersion =
6665
YoutubeParsingHelper.getClientVersion()

0 commit comments

Comments
 (0)