From 442eb44f742f2837f4855c4f1cc428f6e9de1ed0 Mon Sep 17 00:00:00 2001 From: Seena Fallah Date: Sat, 21 Oct 2023 02:43:09 +0200 Subject: [PATCH] outbounds: remove unused nil check for GetDefaultHandler (#2457) Signed-off-by: Seena Fallah --- app/proxyman/outbound/outbound.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/proxyman/outbound/outbound.go b/app/proxyman/outbound/outbound.go index f44691a8124..300a535fe95 100644 --- a/app/proxyman/outbound/outbound.go +++ b/app/proxyman/outbound/outbound.go @@ -82,9 +82,6 @@ func (m *Manager) GetDefaultHandler() outbound.Handler { m.access.RLock() defer m.access.RUnlock() - if m.defaultHandler == nil { - return nil - } return m.defaultHandler }