@@ -861,7 +861,8 @@ ($$$$)
861
861
862
862
# Parse the reference and infer the full repository URL.
863
863
($repository , $issue ) = $self -> find_repository_for_issue($channel , $text );
864
- return " Sorry, I don't know what repository to use for $text " if !$issue ;
864
+ return " Sorry, I don't know what repository to use for $text "
865
+ if ! defined $issue ;
865
866
866
867
# Check that it is under "https://github.com/" and then remove that part.
867
868
($owner , $repo ) =
@@ -987,7 +988,8 @@ ($$$$)
987
988
988
989
# Parse the reference and infer the full repository URL.
989
990
($repository , $issue ) = $self -> find_repository_for_issue($channel , $text );
990
- return " Sorry, I don't know what repository to use for $text " if !$issue ;
991
+ return " Sorry, I don't know what repository to use for $text "
992
+ if ! defined $issue ;
991
993
992
994
# Check that it is under "https://github.com/" and then remove that part.
993
995
($owner , $repo ) =
@@ -1092,7 +1094,8 @@ ($$$$$)
1092
1094
1093
1095
# Parse the reference and infer the full repository URL.
1094
1096
($repository , $issue ) = $self -> find_repository_for_issue($channel , $text );
1095
- return " Sorry, I don't know what repository to use for $issue " if !$issue ;
1097
+ return " Sorry, I don't know what repository to use for $issue "
1098
+ if ! defined $issue ;
1096
1099
1097
1100
# Check that it is under "https://github.com/" and then remove that part.
1098
1101
($owner , $repo ) =
@@ -1309,7 +1312,7 @@ ($$$$$)
1309
1312
1310
1313
if ($ref !~ / ^@/ # It's a reference to an issue.
1311
1314
&& ($addressed || ($do_issues && $linenr > $previous + $delay ))) {
1312
- if (!$issue ) {
1315
+ if (! defined $issue ) {
1313
1316
$self -> log (" Channel $channel , cannot infer a repository for $ref " );
1314
1317
$response .= " I don't know which repository to use for $ref \n "
1315
1318
if $addressed ;
0 commit comments