Skip to content

Commit

Permalink
Refactor status variable assignment in SignUpActivity.
Browse files Browse the repository at this point in the history
  • Loading branch information
nqmgaming committed Nov 18, 2023
1 parent aeceb28 commit 68980a4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ public void afterTextChanged(Editable s) {
}
String createdAt = getCurrentDate();
String updatedAt = getCurrentDate();
int status = 1;
user = new User();
final int finalRandom = (int) (Math.random() * (Integer.parseInt(MAX_LEGHT) - 1 + 1) + 1);

Expand All @@ -186,7 +185,7 @@ public void afterTextChanged(Editable s) {
user.setAvatar(linkAvatar);
user.setCreated_at(createdAt);
user.setUpdated_at(updatedAt);
user.setStatus(status);
user.setStatus(1);


if (userDAO.insertUser(user) > 0) {
Expand Down

0 comments on commit 68980a4

Please sign in to comment.