1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

Merge pull request #4880 from cakebaker/more_remove_empty_else_branches

more: remove empty "else"-branches in tests
This commit is contained in:
Sylvestre Ledru 2023-05-22 09:31:21 +02:00 committed by GitHub
commit 08c71fc80c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,6 @@ fn test_more_no_arg() {
// Reading from stdin is now supported, so this must succeed // Reading from stdin is now supported, so this must succeed
if std::io::stdout().is_terminal() { if std::io::stdout().is_terminal() {
new_ucmd!().succeeds(); new_ucmd!().succeeds();
} else {
} }
} }
@ -18,7 +17,6 @@ fn test_valid_arg() {
new_ucmd!().arg("-p").succeeds(); new_ucmd!().arg("-p").succeeds();
new_ucmd!().arg("--clean-print").succeeds(); new_ucmd!().arg("--clean-print").succeeds();
} else {
} }
} }
@ -32,6 +30,5 @@ fn test_more_dir_arg() {
.arg(".") .arg(".")
.fails() .fails()
.usage_error("'.' is a directory."); .usage_error("'.' is a directory.");
} else {
} }
} }