From 6b59b9a712180ef553ca196b3538b9f5967ebbf7 Mon Sep 17 00:00:00 2001 From: Ahmad Vazirna Date: Sun, 22 Sep 2024 17:19:21 +0200 Subject: [PATCH] Refactor --- src/main/java/org/commcare/cases/entity/AsyncEntity.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/commcare/cases/entity/AsyncEntity.java b/src/main/java/org/commcare/cases/entity/AsyncEntity.java index fda8021e1..2d9f521e2 100755 --- a/src/main/java/org/commcare/cases/entity/AsyncEntity.java +++ b/src/main/java/org/commcare/cases/entity/AsyncEntity.java @@ -168,15 +168,14 @@ public String getSortField(int i) { sortData[i] = ""; } } - return sortData[i]; } - return sortData[i]; } + return sortData[i]; } } catch (IOException e) { Logger.exception("Error while getting sort field", e); } - return sortData[i]; + return null; } @Override