Skip to content

Commit 62eec44

Browse files
jedevctonistiigi
authored andcommitted
solver: stub out sysSampler close
Follow-up to ce332e1 - this didn't resolve the access to sysSampler.Close, we need to stub this one out as well! Signed-off-by: Justin Chadwell <me@jedevc.com> (cherry picked from commit d0b170c)
1 parent 3f62976 commit 62eec44

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

solver/llbsolver/solver.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,10 @@ func New(opt Opt) (*Solver, error) {
125125

126126
func (s *Solver) Close() error {
127127
s.solver.Close()
128-
err := s.sysSampler.Close()
129-
return err
128+
if s.sysSampler != nil {
129+
return s.sysSampler.Close()
130+
}
131+
return nil
130132
}
131133

132134
func (s *Solver) resolver() solver.ResolveOpFunc {

0 commit comments

Comments
 (0)