From 375df5f66a128f77feb541aeb2684f4a7f927291 Mon Sep 17 00:00:00 2001 From: Abirdcfly Date: Fri, 5 Aug 2022 22:54:12 +0800 Subject: [PATCH] delete minor unreachable code caused by log.Fatal Signed-off-by: Abirdcfly --- .../expander/grpcplugin/example/fake_grpc_server.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cluster-autoscaler/expander/grpcplugin/example/fake_grpc_server.go b/cluster-autoscaler/expander/grpcplugin/example/fake_grpc_server.go index 05fd5f47f06b..e4aac5fcd55e 100644 --- a/cluster-autoscaler/expander/grpcplugin/example/fake_grpc_server.go +++ b/cluster-autoscaler/expander/grpcplugin/example/fake_grpc_server.go @@ -66,7 +66,6 @@ func getNetListener(port uint) net.Listener { lis, err := net.Listen("tcp", fmt.Sprintf(":%d", port)) if err != nil { log.Fatalf("failed to listen: %v", err) - panic(fmt.Sprintf("failed to listen: %v", err)) } return lis