Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix file caching

  • Loading branch information...
commit 46c3b38f751c87698ab713d011f30caf1e450c40 1 parent 1942fef
@moritz authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/WebService/Libris/FileCache.pm
View
3  lib/WebService/Libris/FileCache.pm
@@ -19,8 +19,7 @@ sub _filename {
sub get {
my ($self, $key) = @_;
my $filename = $self->_filename($key);
- open my $h, '<', $filename;
- return unless $h;
+ return unless open my $h, '<', $filename;
Mojo::DOM->new(xml => 1, charset => 'UTF-8')->parse(do { local $/; <$h> });
}
Please sign in to comment.
Something went wrong with that request. Please try again.