Skip to content

Commit 1f50af7

Browse files
committed
streamline partial solution
This edit attempts to set trainees of on the right foot, exhibiting good practices in our boilerplate code for them to build on.
1 parent 0ace9dd commit 1f50af7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
function passwordValidator(password) {
2-
return password.length < 5 ? false : true
2+
return password.length >= 5;
33
}
44

5-
6-
module.exports = passwordValidator;
5+
module.exports = passwordValidator;

0 commit comments

Comments
 (0)