Skip to content

Commit 745def3

Browse files
author
a.groshev
committed
nil check
1 parent 2ff855e commit 745def3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

application/App.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ func (a *Application) Start() {
6161
a.depLists = append(a.depLists, []string{dependency.name})
6262
}
6363
a.init[dependency.name] = dependency.init
64-
a.start[dependency.name] = dependency.start
64+
if dependency.start != nil {
65+
a.start[dependency.name] = dependency.start
66+
}
6567
}
6668
BuildInitSeq(a.depLists, &a.depSeq)
6769
for _, name := range a.depSeq {

0 commit comments

Comments
 (0)