Permalink
Browse files

Test with exists, rather than for truthiness. $robustiness++

  • Loading branch information...
1 parent 4b793ef commit 4d53e735af7b61956f91e21589f34e3372033202 @bigpresh committed Oct 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Bot/BasicBot/Pluggable/Module/GitHub/EasyLinks.pm
@@ -98,7 +98,7 @@ sub said {
if ($thing eq 'commit') {
warn "Handling commit $thingnum";
my $commit = $ng->commit->show($thingnum);
- if ($commit && !$commit->{error}) {
+ if ($commit && !exists $commit->{error}) {
my $title = ( split /\n+/, $commit->{message} )[0];
my $url = $commit->{url};

0 comments on commit 4d53e73

Please sign in to comment.