diff --git a/misc-scripts/xref_mapping/XrefParser/InterproGoParser.pm b/misc-scripts/xref_mapping/XrefParser/InterproGoParser.pm index cd92d9f30663e3a1ffdd87953e3f34f18f8840a9..a6c029481d9e0a7b3fbc5229fecb64b4957175d6 100644 --- a/misc-scripts/xref_mapping/XrefParser/InterproGoParser.pm +++ b/misc-scripts/xref_mapping/XrefParser/InterproGoParser.pm @@ -20,9 +20,11 @@ sub run { my $file = @{$files}[0]; - my $file_io = $self->get_filehandle($file) - || ( print( "ERROR: Cannot open $file\n" ) && return 1 ); - + my $file_io = $self->get_filehandle($file); + unless ($file_io) { + print( "ERROR: Cannot open $file\n" ); + return 1 ; + } my %interpros = %{$self->get_valid_codes("interpro",$species_id)};