]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LEI.pm
lei: _lei_cfg: return empty hashref if unconfigured
[public-inbox.git] / lib / PublicInbox / LEI.pm
index 73c9e267b1e4a37ef742f0e56b10d3655f6cf4b9..dd34c66879fd9c4a08f0c9445c9c24d45afd5add 100644 (file)
@@ -592,7 +592,7 @@ sub _lei_cfg ($;$) {
        if (!@st) {
                unless ($creat) {
                        delete $self->{cfg};
-                       return;
+                       return bless {}, 'PublicInbox::Config';
                }
                my (undef, $cfg_dir, undef) = File::Spec->splitpath($f);
                -d $cfg_dir or mkpath($cfg_dir) or die "mkpath($cfg_dir): $!\n";