Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Commit

Permalink
Fix checks
Browse files Browse the repository at this point in the history
  • Loading branch information
riclage committed Apr 3, 2018
1 parent 14d3258 commit c39d84d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public Observable<BufferedSource> readAll(@Nonnull final String path) throws Fil
.fromIterable(fileSystem.list(path))
.flatMap(s ->
Observable.defer(() -> Observable.just(fileSystem.read(s)))
.onErrorReturn(throwable -> Okio.buffer((ReadResultBufferedSourceFactory.createFailureResult(throwable)))));
.onErrorReturn(throwable -> Okio.buffer(
ReadResultBufferedSourceFactory.createFailureResult(throwable))));
} catch (FileNotFoundException e) {
throw Exceptions.propagate(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

public final class ReadResultBufferedSourceFactory {

private ReadResultBufferedSourceFactory() {
}

@Nonnull
public static ReadResultBufferedSource createFailureResult(@Nonnull Throwable throwable) {
if (throwable == null) {
Expand Down

0 comments on commit c39d84d

Please sign in to comment.