commit b8ce0c8b5a934cff37cbb4ecb123d5895d477f42
parent 276bd0ce2cb307fe8bb822308688837019cd4f4e
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Mon, 2 May 2016 15:41:23 +0200
sboremove: check length of @dep_of instead of if $dep_of[0] exists
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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 {