Explorar o código

fix lint warning

Darien Raymond %!s(int64=8) %!d(string=hai) anos
pai
achega
026f7e3cc2
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      v2ray.go

+ 2 - 3
v2ray.go

@@ -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 {