mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
@ -9089,7 +9089,6 @@ func (q *FakeQuerier) GetAuthorizedWorkspaces(ctx context.Context, arg database.
|
|||||||
params = append(params, param)
|
params = append(params, param)
|
||||||
}
|
}
|
||||||
|
|
||||||
var innerErr error
|
|
||||||
index := slices.IndexFunc(params, func(buildParam database.WorkspaceBuildParameter) bool {
|
index := slices.IndexFunc(params, func(buildParam database.WorkspaceBuildParameter) bool {
|
||||||
// If hasParam matches, then we are done. This is a good match.
|
// If hasParam matches, then we are done. This is a good match.
|
||||||
if slices.ContainsFunc(arg.HasParam, func(name string) bool {
|
if slices.ContainsFunc(arg.HasParam, func(name string) bool {
|
||||||
@ -9116,9 +9115,6 @@ func (q *FakeQuerier) GetAuthorizedWorkspaces(ctx context.Context, arg database.
|
|||||||
|
|
||||||
return match
|
return match
|
||||||
})
|
})
|
||||||
if innerErr != nil {
|
|
||||||
return nil, xerrors.Errorf("error searching workspace build params: %w", innerErr)
|
|
||||||
}
|
|
||||||
if index < 0 {
|
if index < 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user