The open-coded callback was identical to the existing callback
generated by our Eml package, so just use the existing code
instead unless a user uses `lei import --noisy'
eval 'no warnings; undef $PublicInbox::LeiNoteEvent::to_flush';
undef $errors_log;
$quit = \&CORE::exit;
- if (!$self->{opt}->{noisy}) { # only "lei import" sets this atm
- my $cb = $SIG{__WARN__} // \&CORE::warn;
- $SIG{__WARN__} = sub {
- $cb->(@_) unless PublicInbox::Eml::warn_ignore(@_)
- };
- }
+ $self->{opt}->{noisy} or # only "lei import" sets this atm
+ $SIG{__WARN__} = PublicInbox::Eml::warn_ignore_cb();
$SIG{TERM} = $term_handler;
$current_lei = $persist ? undef : $self; # for SIG{__WARN__}
}