mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 01:47:51 +08:00
eval: remove HasFailure
This commit is contained in:
parent
44695ad145
commit
268fc50c95
14
eval/eval.go
14
eval/eval.go
|
@ -42,20 +42,6 @@ type evalCtx struct {
|
|||
ports []*port
|
||||
}
|
||||
|
||||
func HasFailure(vs []Value) bool {
|
||||
for _, v := range vs {
|
||||
v, ok := v.(Exitus)
|
||||
if !ok {
|
||||
// Silently ignore non-exitus values
|
||||
continue
|
||||
}
|
||||
if v.Sort != Ok {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// NewEvaler creates a new Evaler.
|
||||
func NewEvaler(st *store.Store, dataDir string) *Evaler {
|
||||
// Construct searchPaths
|
||||
|
|
Loading…
Reference in New Issue
Block a user