Skip to content

Commit

Permalink
fixed isPresent result has inversed...
Browse files Browse the repository at this point in the history
  • Loading branch information
sato-daisuke committed Feb 10, 2015
1 parent a699037 commit e062968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optional/src/main/java/com/eccyan/optional/Optional.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected Optional(OnSubscribe<T> f) {
}

public boolean isPresent() {
return isEmpty().toBlocking().single();
return !isEmpty().toBlocking().single();
}

public void ifPresent(Action1<? super T> action) {
Expand Down

0 comments on commit e062968

Please sign in to comment.