Skip to content

Commit

Permalink
Avoid extra call to AnchorIdentifiers()
Browse files Browse the repository at this point in the history
Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
  • Loading branch information
m1kola committed Nov 16, 2023
1 parent ddaf504 commit d7f4845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/solver/solve.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (s *solver) solve() ([]deppy.Variable, error) {
// collect literals of all mandatory variables to assume as a baseline
anchors := s.litMap.AnchorIdentifiers()
assumptions := make([]z.Lit, len(anchors))
for i := range s.litMap.AnchorIdentifiers() {
for i := range anchors {
assumptions[i] = s.litMap.LitOf(anchors[i])
}

Expand Down

0 comments on commit d7f4845

Please sign in to comment.