Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 92bf803

Browse files
changed redundant invokeCompletion calls
1 parent 7087db8 commit 92bf803

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

‎Paging Library/app/src/main/java/com/developers/paginglibrary/MovieDataSource.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ class MovieDataSource(private val coroutineScope: CoroutineScope) :
2929
apiInterface.getPopularMovies(key = BuildConfig.MOVIES_KEY, page = 1)
3030
state.value = State.DONE
3131
callback.onResult(moviesResponse.results, null, 2)
32-
}.invokeOnCompletion {
33-
3432
}
3533
}
3634

@@ -44,8 +42,6 @@ class MovieDataSource(private val coroutineScope: CoroutineScope) :
4442
val nextKey = params.key + 1
4543
state.value = State.DONE
4644
callback.onResult(moviesResponse.results, nextKey)
47-
}.invokeOnCompletion {
48-
4945
}
5046
}
5147

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /