use fromNullable

This commit is contained in:
ligi 2014-07-15 03:39:53 +02:00
parent e940cd182c
commit c5eac49d1a

View file

@ -159,11 +159,7 @@ public class AndroidFileSystemPassStore implements PassStore {
@Override
public Optional<Pass> getCurrentPass() {
if (actPass == null) {
return Optional.absent();
}
return Optional.of(actPass);
return Optional.fromNullable(actPass);
}
@Override