Skip to content

Commit

Permalink
Checking for null/empty URL should suffice
Browse files Browse the repository at this point in the history
  • Loading branch information
0nko committed Jan 16, 2024
1 parent a21a76c commit 272ad60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class MediaFilesRepository @Inject constructor(

event.completed -> {
val media = event.media
val channelResult = if (media != null && media.url.isNotNullOrEmpty() && media.url.isNotBlank()) {
val channelResult = if (media != null && media.url.isNotNullOrEmpty()) {
WooLog.i(T.MEDIA, "MediaFilesRepository > uploaded media ${media.id}")
producerScope.trySendBlocking(
UploadSuccess(media)
Expand Down

0 comments on commit 272ad60

Please sign in to comment.