use fromNullable
This commit is contained in:
parent
e940cd182c
commit
c5eac49d1a
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue