Skip to content

Commit 63bc584

Browse files
chenkinsdkocher
authored andcommitted
Cleanup.
1 parent ba6a96e commit 63bc584

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

s3/src/test/java/ch/cyberduck/core/cryptomator/UVFIntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,10 @@ public Credentials prompt(final Host bookmark, final String username, final Stri
269269
return content;
270270
}
271271

272-
private static String readFile(final S3Session storage, final Path foo) throws IOException, BackgroundException {
272+
private static String readFile(final Session<?> session, final Path foo) throws IOException, BackgroundException {
273273
final byte[] buf = new byte[300];
274274
final TransferStatus status = new TransferStatus();
275-
try(final InputStream inputStream = storage.getFeature(Read.class).read(foo, status, new DisabledConnectionCallback())) {
275+
try(final InputStream inputStream = session.getFeature(Read.class).read(foo, status, new DisabledConnectionCallback())) {
276276
int l = inputStream.read(buf);
277277
return new String(Arrays.copyOfRange(buf, 0, l));
278278
}

0 commit comments

Comments
 (0)