Skip to content

Commit 1e1f373

Browse files
committed
fix(app): ignore default options returned by appOpts
Signed-off-by: Artur Troian <[email protected]>
1 parent 6995553 commit 1e1f373

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

app/app.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"net/http"
77
"os"
88
"path/filepath"
9-
"reflect"
109
"time"
1110

1211
"github.com/gorilla/mux"
@@ -140,8 +139,6 @@ func NewApp(
140139
if val := appOpts.Get("wasm"); val != nil {
141140
if vl, valid := val.([]wasmkeeper.Option); valid {
142141
wasmOpts = append(wasmOpts, vl...)
143-
} else {
144-
panic(fmt.Sprintf("invalid type for aptOpts.Get(\"wasm\"). expected %s, actual %s", reflect.TypeOf(wasmOpts).String(), reflect.TypeOf(val).String()))
145142
}
146143
}
147144

0 commit comments

Comments
 (0)