From 9e50d74ef0864b1002b803ebb585bdf4b01651c1 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 6e9536119..133a3a088 100755 --- a/src/main/java/org/commcare/cases/entity/AsyncEntity.java +++ b/src/main/java/org/commcare/cases/entity/AsyncEntity.java @@ -169,15 +169,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