summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2008-01-23 23:32:12 +0000
committerRuss Allbery <rra@stanford.edu>2008-01-23 23:32:12 +0000
commit0e8b67e017522f701b2f1e915ddfc0d49a8bcea4 (patch)
tree3b9a9485f890ecd9582b0b992cfd84d5705bdca1 /tests
parent41f4954584a81974c66e4c2f459cc9453c065d56 (diff)
Avoid return undef as a matter of style.
Diffstat (limited to 'tests')
-rw-r--r--tests/server/backend-t.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/server/backend-t.in b/tests/server/backend-t.in
index 553ce55..88cbd1a 100644
--- a/tests/server/backend-t.in
+++ b/tests/server/backend-t.in
@@ -23,7 +23,7 @@ $okay = 0;
sub error {
if ($okay) {
$okay = 0;
- return undef;
+ return;
} else {
$error++;
return "error count $error";
@@ -69,10 +69,10 @@ sub acl {
shift;
print "acl @_\n";
if ($_[0] eq 'error') {
- return undef;
+ return;
} elsif ($_[1] eq 'empty') {
$okay = 1;
- return undef;
+ return;
} else {
return 'acl';
}
@@ -97,10 +97,10 @@ sub expires {
shift;
print "expires @_\n";
if ($_[0] eq 'error') {
- return undef;
+ return;
} elsif ($_[1] eq 'empty') {
$okay = 1;
- return undef;
+ return;
} else {
return 'expires';
}
@@ -124,10 +124,10 @@ sub owner {
shift;
print "owner @_\n";
if ($_[0] eq 'error') {
- return undef;
+ return;
} elsif ($_[1] eq 'empty') {
$okay = 1;
- return undef;
+ return;
} else {
return 'owner';
}