From 05d1dac95a93902b5f2877d01c77f02c6455eb85 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 30 Apr 2014 01:02:53 +0000 Subject: config: avoid double-slash in expand_path output It looks ugly in error messages to have redundant slashes. --- lib/PublicInbox/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/Config.pm') diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index 876e5d02..364e6091 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -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"; } -- cgit v1.2.3-24-ge0c7