diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-02 15:41:23 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-02 15:41:23 +0200 |
commit | b8ce0c8b5a934cff37cbb4ecb123d5895d477f42 (patch) | |
tree | 2a96662829c805656221940e06c92cb9e9af7559 /sboremove | |
parent | 276bd0ce2cb307fe8bb822308688837019cd4f4e (diff) | |
download | sbotools-b8ce0c8b5a934cff37cbb4ecb123d5895d477f42.tar.xz |
sboremove: check length of @dep_of instead of if $dep_of[0] exists
Diffstat (limited to 'sboremove')
-rwxr-xr-x | sboremove | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |