Skip to content

Commit 9dc9baa

Browse files
committed
add missing apx assignment on NewApx
1 parent 1409ec0 commit 9dc9baa

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

core/apx.go

+8-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,16 @@ type Apx struct {
1111
}
1212

1313
func NewApx(cnf *settings.Config) *Apx {
14-
return &Apx{
14+
apx = &Apx{
1515
Cnf: cnf,
1616
}
17+
18+
err := apx.EssentialChecks()
19+
if err != nil {
20+
panic(err)
21+
}
22+
23+
return apx
1724
}
1825

1926
func NewStandardApx() *Apx {

0 commit comments

Comments
 (0)