Skip to content

Commit d0af9a8

Browse files
committed
Refactor: make trackAutoUploadAction fun foldable
1 parent 5ae5c5b commit d0af9a8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

WordPress/src/main/java/org/wordpress/android/ui/uploads/UploadStarter.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,7 @@ class UploadStarter @Inject constructor(
152152

153153
private fun PostModel.toStringLog() = "${if (isPage) "page" else "post"} with title: $title"
154154

155-
private fun trackAutoUploadAction(
156-
action: UploadAction,
157-
status: String,
158-
isPage: Boolean
159-
) {
155+
private fun trackAutoUploadAction(action: UploadAction, status: String, isPage: Boolean) {
160156
tracker.track(
161157
if (isPage) Stat.AUTO_UPLOAD_PAGE_INVOKED else Stat.AUTO_UPLOAD_POST_INVOKED,
162158
mapOf(

0 commit comments

Comments
 (0)