Commit 5d86a6b
authored
MINOR: Remove unnecessary null check in DefaultStatePersister#stop (#22308)
The `stateManager` field is `final` and assigned in both constructors of
`DefaultStatePersister`, so the `if (stateManager != null)` guard in
`stop()` can never evaluate to false.
No behavior change; existing tests in `DefaultStatePersisterTest`
remain sufficient.
Reviewers: Ken Huang <s7133700@gmail.com>, Chia-Ping Tsai
<chia7712@gmail.com>1 parent 23436ab commit 5d86a6b
1 file changed
Lines changed: 1 addition & 3 deletions
File tree
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
| 72 | + | |
75 | 73 | | |
76 | 74 | | |
77 | 75 | | |
| |||
0 commit comments