aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-02 15:41:23 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-02 15:41:23 +0200
commitb8ce0c8b5a934cff37cbb4ecb123d5895d477f42 (patch)
tree2a96662829c805656221940e06c92cb9e9af7559
parent276bd0ce2cb307fe8bb822308688837019cd4f4e (diff)
downloadsbotools-b8ce0c8b5a934cff37cbb4ecb123d5895d477f42.tar.xz
sboremove: check length of @dep_of instead of if $dep_of[0] exists
-rwxr-xr-xsboremove2
1 files changed, 1 insertions, 1 deletions
diff --git a/sboremove b/sboremove
index 9506633..d03ca21 100755
--- a/sboremove
+++ b/sboremove
@@ -101,7 +101,7 @@ sub get_required_by {
push @dep_of, $req_by unless in($req_by => @confirmed);
}
}
- return exists $dep_of[0] ? \@dep_of : undef;
+ return @dep_of ? \@dep_of : undef;
}
sub confirm_remove {