Skip to content

Commit

Permalink
parse classmap
Browse files Browse the repository at this point in the history
- improved classmap processing
- removed redundant file handle close
  • Loading branch information
wickedOne committed Feb 21, 2024
1 parent 7a201cb commit d7b95be
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/GPH/Composer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sub new {

bless $self, $class;

$self->{classmap} = $self->parseClassMap($args{classmap});
$self->parseClassMap($args{classmap});

return $self;
}
Expand Down Expand Up @@ -51,12 +51,8 @@ sub parseClassMap {
next unless $line =~ /\$baseDir\s\./;

my ($class, $code_path) = split(/ => \$baseDir \. /, $line);
$classmap{strip($class)} = strip($code_path);
$self->{classmap}{strip($class)} = strip($code_path);
}

close($fh);

return (\%classmap);
}

sub strip {
Expand Down

0 comments on commit d7b95be

Please sign in to comment.