mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
style(verifier): use maps.Copy for verdict snapshot
This commit is contained in:
1 parent
60c4ef7458
commit
c69052ae89
1 file changed
+2
-3
@@ -4,6 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"maps"
|
||||
"math/rand/v2"
|
||||
"sort"
|
||||
"strings"
|
||||
@@ -317,9 +318,7 @@ func (v *Verifier) EvaluateProperties() map[string]ltl.Verdict {
|
||||
v.newlyViolated = onset
|
||||
|
||||
next := make(map[string]ltl.Verdict, len(verdicts))
|
||||
for name, verdict := range verdicts {
|
||||
next[name] = verdict
|
||||
}
|
||||
maps.Copy(next, verdicts)
|
||||
v.priorVerdicts = next
|
||||
|
||||
return verdicts
|
||||
|
||||
Reference in new issue
Block a user