Remove redundant checks for existing snapshot 87/115887/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 13 Mar 2025 13:00:37 +0000 (14:00 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 13 Mar 2025 13:01:40 +0000 (14:01 +0100)
commit5df71451375f933686508ffed3357ead7a09e0ec
tree60ee3962b95b6d5ce8276934c247d2157d4c5e68
parente90760e6bab73380aec1af25789dd1c6dedf0574
Remove redundant checks for existing snapshot

We have two callers who have checked the Optional for presence, so they
should be bypass the check, making the flow a bit clearer.

JIRA: CONTROLLER-2134
Change-Id: I31877288b1bb00d6f0ddfd35558a00e96027bb08
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/AbstractLeader.java