]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiInit.pm
get rid of unnecessary bytes::length usage
[public-inbox.git] / lib / PublicInbox / LeiInit.pm
index c6c0c01b1332e5694279b828d9c5e6f0e1852b44..6558ac0a350672ec0f928dbec7c4896d546ea861 100644 (file)
@@ -4,7 +4,6 @@
 # for the "lei init" command, not sure if it's even needed...
 package PublicInbox::LeiInit;
 use v5.10.1;
-use File::Spec;
 
 sub lei_init {
        my ($self, $dir) = @_;
@@ -13,7 +12,7 @@ sub lei_init {
        $dir //= $self->store_path;
        $dir = $self->rel2abs($dir);
        my @cur = stat($cur) if defined($cur);
-       $cur = File::Spec->canonpath($cur // $dir);
+       $cur = $self->canonpath_harder($cur // $dir);
        my @dir = stat($dir);
        my $exists = "# leistore.dir=$cur already initialized" if @dir;
        if (@cur) {