We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e15540 commit 87fa562Copy full SHA for 87fa562
coderd/wsbuilder/wsbuilder.go
@@ -197,32 +197,6 @@ func (e BuildError) Unwrap() error {
197
return e.Wrapped
198
}
199
200
-type Adder interface {
201
- Add() int
202
-}
203
-
204
-type myAdder struct {
205
- val int
206
207
208
-func (m *myAdder) Add() int {
209
- return m.val
210
211
212
-func sum(adder []Adder) int {
213
- sum := 0
214
- for _, a := range adder {
215
- sum += a.Add()
216
- }
217
- return sum
218
219
220
-var x = sum([]Adder{&myAdder{
221
- val: 2,
222
-}, &myAdder{
223
- val: 4,
224
-}})
225
226
// Build computes and inserts a new workspace build into the database. If authFunc is provided, it also performs
227
// authorization preflight checks.
228
func (b *Builder) Build(
0 commit comments