Skip to content
Snippets Groups Projects
Commit 6b439073 authored by Kirill Vlasov's avatar Kirill Vlasov
Browse files

[s3] Fixing squid:S1143 - return statements should not occur in finally blocks

parent 6032ff16
No related branches found
No related tags found
No related merge requests found
......@@ -414,14 +414,14 @@ public class S3Client extends DB {
System.err.println("Not possible to write object :"+key);
e.printStackTrace();
return Status.ERROR;
} finally {
return Status.OK;
}
} catch (Exception e) {
System.err.println("Error in the creation of the stream :"+e.toString());
e.printStackTrace();
return Status.ERROR;
}
return Status.OK;
}
/**
......@@ -465,9 +465,9 @@ public class S3Client extends DB {
System.err.println("Not possible to get the object "+key);
e.printStackTrace();
return Status.ERROR;
} finally {
return Status.OK;
}
return Status.OK;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment