… | … | ||
---|---|---|---|
1152 | my ($cb) = @_; | 1152 | my ($cb) = @_; |
1153 | 1153 | ||
1154 | if ($MODEL) { | 1154 | if ($MODEL) { |
1155 | $cb->(); | 1155 | $cb->(); |
1156 | 1156 | ||
1157 | 1 | 1157 | undef |
1158 | } else { | 1158 | } else { |
1159 | push @post_detect, $cb; | 1159 | push @post_detect, $cb; |
1160 | 1160 | ||
1161 | defined wantarray | 1161 | defined wantarray |
1162 | ? bless \$cb, "AnyEvent::Util::postdetect" | 1162 | ? bless \$cb, "AnyEvent::Util::postdetect" |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |