1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00

fix lint warning

This commit is contained in:
Darien Raymond 2017-11-22 23:17:32 +01:00
parent 40d7c40489
commit 026f7e3cc2
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -109,14 +109,13 @@ func newSimpleServer(config *Config) (*simpleServer, error) {
common.Must(space.AddApplication(d))
}
disp := dispatcher.FromSpace(space)
if disp == nil {
if disp := dispatcher.FromSpace(space); disp == nil {
d, err := app.CreateAppFromConfig(ctx, new(dispatcher.Config))
if err != nil {
return nil, err
}
common.Must(space.AddApplication(d))
disp = d.(dispatcher.Interface)
// disp = d.(dispatcher.Interface)
}
for _, inbound := range config.Inbound {