From cbd9a2bbc505f5f2903855801748381c76365564 Mon Sep 17 00:00:00 2001 From: Deyan Ginev Date: Thu, 27 Jun 2019 11:27:26 -0400 Subject: [PATCH] remove -f check for epub assets, due to cygwin issue. check was redundant in any case (#1164) --- lib/LaTeXML/Post/Manifest/Epub.pm | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/lib/LaTeXML/Post/Manifest/Epub.pm b/lib/LaTeXML/Post/Manifest/Epub.pm index b85e716b7..252cfa6d1 100644 --- a/lib/LaTeXML/Post/Manifest/Epub.pm +++ b/lib/LaTeXML/Post/Manifest/Epub.pm @@ -185,15 +185,13 @@ sub finalize { my @styles = (); my @images = (); find({ no_chdir => 1, wanted => sub { - my $OPS_abspath = $_; - if (-f $OPS_abspath) { - my $OPS_pathname = pathname_relative($OPS_abspath, $OPS_directory); - if ($OPS_pathname =~ /\.css$/) { - push(@styles, $OPS_pathname); } - elsif ($OPS_pathname =~ /\.png$/) { - push(@images, $OPS_pathname); } - else { } # skip any other resources - } + my $OPS_abspath = $_; + my $OPS_pathname = pathname_relative($OPS_abspath, $OPS_directory); + if ($OPS_pathname =~ /\.css$/) { + push(@styles, $OPS_pathname); } + elsif ($OPS_pathname =~ /\.png$/) { + push(@images, $OPS_pathname); } + else { } # skip any other resources } }, $OPS_directory); my $manifest = $$self{opf_manifest};