From afd54c1684e4e548c1afc94d42c6f1aad7f2df37 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Fri, 24 Jul 2020 17:28:56 +0200 Subject: [PATCH] removed not needed upload and refactoring --- .../main/java/eu/dnetlib/dhp/oa/graph/dump/SendToZenodo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/SendToZenodo.java b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/SendToZenodo.java index 98573d0fb8..1ef13b0cb3 100644 --- a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/SendToZenodo.java +++ b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/SendToZenodo.java @@ -4,7 +4,6 @@ package eu.dnetlib.dhp.oa.graph.dump; import java.io.File; import java.io.Serializable; -import eu.dnetlib.dhp.oa.graph.dump.community.CommunityMap; import org.apache.commons.io.IOUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -15,6 +14,7 @@ import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.RemoteIterator; import eu.dnetlib.dhp.application.ArgumentApplicationParser; +import eu.dnetlib.dhp.oa.graph.dump.community.CommunityMap; import eu.dnetlib.dhp.utils.ISLookupClientFactory; public class SendToZenodo implements Serializable { @@ -57,7 +57,7 @@ public class SendToZenodo implements Serializable { Path p = fileStatus.getPath(); String p_string = p.toString(); - if(!p_string.endsWith("_SUCCESS")){ + if (!p_string.endsWith("_SUCCESS")) { String tmp = p_string.substring(0, p_string.lastIndexOf("/")); String community = tmp.substring(tmp.lastIndexOf("/") + 1); log.info("Sending information for community: " + community);