]> Sergey Matveev's repositories - public-inbox.git/commitdiff
config: avoid double-slash in expand_path output
authorEric Wong <e@80x24.org>
Wed, 30 Apr 2014 01:02:53 +0000 (01:02 +0000)
committerEric Wong <e@80x24.org>
Wed, 30 Apr 2014 01:02:53 +0000 (01:02 +0000)
It looks ugly in error messages to have redundant slashes.

lib/PublicInbox/Config.pm

index 876e5d0239d2797c8e600f783a6cdadcc6bba690..364e6091e2281b3b7e06ecf1f97c0d80718a1b14 100644 (file)
@@ -78,7 +78,7 @@ sub get {
 sub default_file {
        my $f = $ENV{PI_CONFIG};
        return $f if defined $f;
-       my $pi_dir = $ENV{PI_DIR} || expand_filename('~/.public-inbox/');
+       my $pi_dir = $ENV{PI_DIR} || expand_filename('~/.public-inbox');
        "$pi_dir/config";
 }