Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-kimoto committed Nov 16, 2013
1 parent 9e3681c commit 99bcad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/Gitprep.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use Mojo::Base 'Mojolicious';

use Carp 'croak';
use DBIx::Custom;
use Encode qw/encode decode/;
use Gitprep::API;
use Gitprep::Git;
use Gitprep::Manager;
Expand Down
4 changes: 2 additions & 2 deletions lib/Gitprep/Git.pm
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ sub description {
else {
# Read description
return unless -f $file;
my $description = $self->_slurp($file) || '';
my $description = $self->_dec($self->_slurp($file) || '');
return $description;
}
}
Expand Down Expand Up @@ -1708,7 +1708,7 @@ sub _slurp {
# Slurp
open my $fh, '<', $file
or croak qq/Can't open file "$file": $!/;
my $content = do { local $/; $self->_dec(scalar <$fh>) };
my $content = do { local $/; scalar <$fh> };
close $fh;

return $content;
Expand Down

0 comments on commit 99bcad5

Please sign in to comment.