fix sonar issue unused local variable
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
This commit is contained in:
@@ -124,11 +124,9 @@ public class ArtifactStore implements ArtifactRepository {
|
|||||||
try {
|
try {
|
||||||
LOGGER.debug("storing file {} of content {}", filename, contentType);
|
LOGGER.debug("storing file {} of content {}", filename, contentType);
|
||||||
tempFile = File.createTempFile("uploadFile", null);
|
tempFile = File.createTempFile("uploadFile", null);
|
||||||
try (final FileOutputStream os = new FileOutputStream(tempFile)) {
|
try (final BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(tempFile))) {
|
||||||
try (BufferedOutputStream bos = new BufferedOutputStream(os)) {
|
try (BufferedInputStream bis = new BufferedInputStream(content)) {
|
||||||
try (BufferedInputStream bis = new BufferedInputStream(content)) {
|
return store(bis, contentType, bos, tempFile, hash);
|
||||||
return store(content, contentType, bos, tempFile, hash);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (final IOException | MongoException e1) {
|
} catch (final IOException | MongoException e1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user