Commit 2aea588
committed
userdbctl: drop redundant user name validity check
The userdb_by_name() invocation immediately following does the same check
anyway, no need to do this twice.
(Also, make sure we exit the function early on failure)1 parent 8ff8ce6 commit 2aea588
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | 544 | | |
548 | 545 | | |
549 | | - | |
| 546 | + | |
550 | 547 | | |
551 | | - | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
552 | 551 | | |
553 | | - | |
| 552 | + | |
554 | 553 | | |
555 | 554 | | |
556 | 555 | | |
| |||
0 commit comments