Skip to content

Commit

Permalink
Update the error to indicate unknown outcome
Browse files Browse the repository at this point in the history
Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
  • Loading branch information
m1kola committed Dec 11, 2023
1 parent 0611cd6 commit f34a628
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/deppy/solver/solve.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ func (s *Solver) solve(giniSolver inter.S, litMap *litMapping) ([]deppy.Variable
return nil, deppy.NotSatisfiable(litMap.Conflicts(giniSolver))
}

return nil, errors.New("cancelled before a solution could be found")
// This should never happen
return nil, errors.New("unknown outcome")
}

func New(options ...Option) (*Solver, error) {
Expand Down

0 comments on commit f34a628

Please sign in to comment.