Skip to content

Commit b43dfaf

Browse files
authoredMar 6, 2019
Merge pull request #416 from RajaVamsi11/RemoveRedundantCode
fix : Removed redundant code constructs
2 parents 886843b + 8eaade1 commit b43dfaf

File tree

5 files changed

+1
-5
lines changed

5 files changed

+1
-5
lines changed
 

‎core/src/main/java/org/mifos/mobilewallet/core/utils/DateHelper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public static long getDateAsLongFromString(String dateStr, String pattern) {
133133
try {
134134
date = sdf.parse(dateStr);
135135
} catch (ParseException e) {
136-
Log.d("TAG", e.getMessage().toString());
136+
Log.d("TAG", e.getMessage());
137137
}
138138
return date.getTime();
139139
}

‎mifospay/src/main/java/org/mifos/mobilewallet/mifospay/editprofile/ui/EditProfileActivity.java

-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,6 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis
344344
// functionality that depends on this permission.
345345
showToast(Constants.NEED_EXTERNAL_STORAGE_PERMISSION_TO_BROWSE_IMAGES);
346346
}
347-
return;
348347
}
349348

350349
// other 'case' lines to check for other

‎mifospay/src/main/java/org/mifos/mobilewallet/mifospay/home/ui/TransferFragment.java

-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis
333333
// functionality that depends on this permission.
334334
Toaster.show(getView(), Constants.NEED_READ_CONTACTS_PERMISSION);
335335
}
336-
return;
337336
}
338337
}
339338
}

‎mifospay/src/main/java/org/mifos/mobilewallet/mifospay/kyc/ui/KYCLevel2Fragment.java

-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis
145145
// functionality that depends on this permission.
146146
showToast(Constants.NEED_EXTERNAL_STORAGE_PERMISSION_TO_BROWSE_DOCUMENTS);
147147
}
148-
return;
149148
}
150149

151150
// other 'case' lines to check for other

‎mifospay/src/main/java/org/mifos/mobilewallet/mifospay/receipt/ui/ReceiptActivity.java

-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis
153153
// functionality that depends on this permission.
154154
showToast(Constants.NEED_EXTERNAL_STORAGE_PERMISSION_TO_DOWNLOAD_RECEIPT);
155155
}
156-
return;
157156
}
158157

159158
// other 'case' lines to check for other

0 commit comments

Comments
 (0)