Skip to content

Commit ca00a4b

Browse files
nbradburyclaude
andcommitted
Reader: Remove redundant isEmpty check on preserved date
getDatePublished() already returns a non-null string via StringUtils.notNullStr(), making the TextUtils.isEmpty guard unnecessary. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 641f070 commit ca00a4b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

WordPress/src/main/java/org/wordpress/android/ui/reader/actions/ReaderPostActions.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,7 @@ public void onResponse(JSONObject jsonObject) {
301301
ReaderPost existingPost =
302302
ReaderPostTable.getBlogPost(
303303
post.blogId, post.postId, true);
304-
if (existingPost != null
305-
&& !TextUtils.isEmpty(
306-
existingPost.getDatePublished())) {
304+
if (existingPost != null) {
307305
post.setDatePublished(
308306
existingPost.getDatePublished());
309307
}

0 commit comments

Comments
 (0)