Skip to content

Commit 93a2dfe

Browse files
committed
return instead of next, since it's not in a loop
1 parent 5cea8eb commit 93a2dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Git/PurePerl.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ sub ref_sha1 {
163163
my ( $self, $wantref ) = @_;
164164
my @refs;
165165
my $dir = dir( $self->gitdir, 'refs' );
166-
next unless -d $dir;
166+
return unless -d $dir;
167167
foreach my $file ( File::Find::Rule->new->file->in($dir) ) {
168168
my $ref = 'refs/' . file($file)->relative($dir)->as_foreign('Unix');
169169
if ( $ref eq $wantref ) {

0 commit comments

Comments
 (0)