Skip to content

Commit

Permalink
refactor : binding with으로 묶음 #7
Browse files Browse the repository at this point in the history
  • Loading branch information
SeonHwan-Kim committed May 8, 2023
1 parent da8aa7a commit fd82bcf
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ class SignUpActivity : AppCompatActivity() {
}

private fun isAllConditionSatisfy(): Boolean {
return binding.etSignupId.text.length in 6..10 &&
binding.etSignupPassword.text.length in 8..12 &&
binding.etSignupName.text.isNotBlank() &&
binding.etSignupSpecialty.text.isNotBlank()
with(binding) {
return etSignupId.text.length in 6..10 &&
etSignupPassword.text.length in 8..12 &&
etSignupName.text.isNotBlank() &&
etSignupSpecialty.text.isNotBlank()
}
}
}

0 comments on commit fd82bcf

Please sign in to comment.