File tree 1 file changed +2
-2
lines changed
validator/api/src/main/java/tech/pegasys/teku/validator/api
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public UpdatableGraffitiProvider(
43
43
44
44
@ Override
45
45
public Optional <Bytes32 > get () {
46
- return getGraffitiFromStorage ().filter ( this :: graffitiNotEmpty ). or (defaultProvider ::get );
46
+ return getGraffitiFromStorage ().or (defaultProvider ::get );
47
47
}
48
48
49
49
private Optional <Bytes32 > getGraffitiFromStorage () {
@@ -52,7 +52,7 @@ private Optional<Bytes32> getGraffitiFromStorage() {
52
52
}
53
53
54
54
try {
55
- return Optional .of (GraffitiParser .loadFromFile (graffitiPath ));
55
+ return Optional .of (GraffitiParser .loadFromFile (graffitiPath )). filter ( this :: graffitiNotEmpty ) ;
56
56
} catch (GraffitiLoaderException | IllegalArgumentException e ) {
57
57
LOG .warn ("Unable to read graffiti from storage" , e );
58
58
return Optional .empty ();
You can’t perform that action at this time.
0 commit comments