Skip to content

Commit 1b7128d

Browse files
committed
author_dir: format entire string using sprintf
1 parent 8163576 commit 1b7128d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/MetaCPAN/Util.pm

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,7 @@ sub fix_version {
9494

9595
sub author_dir {
9696
my $pauseid = shift;
97-
my $dir = 'id/'
98-
. sprintf( "%s/%s/%s",
99-
substr( $pauseid, 0, 1 ),
100-
substr( $pauseid, 0, 2 ), $pauseid );
101-
return $dir;
97+
return sprintf( 'id/%1$.1s/%1$.2s/%1$s', $pauseid );
10298
}
10399

104100
sub hit_total {

0 commit comments

Comments
 (0)