]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: drop unnecessary return 26983/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 25 Mar 2023 11:17:11 +0000 (12:17 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 25 Mar 2023 11:17:11 +0000 (12:17 +0100)
Return code of the EXIT trap handler is ignored in bash.

test/units/testsuite-74.machinectl.sh

index 119c9bdc0278c3524beb69f143e506074a179c0c..3d8d07c87da9fcfc188fb619819e277eab78a942 100755 (executable)
@@ -11,8 +11,6 @@ at_exit() {
     if [[ -v NSPAWN_NAME && -e "/var/lib/machines/$NSPAWN_NAME" ]]; then
         rm -fvr "/var/lib/machines/$NSPAWN_NAME" "/etc/systemd/nspawn/$NSPAWN_NAME" "new"
     fi
-
-    return 0
 }
 
 trap at_exit EXIT