From d5016bf44fa81bf884b3d624a31daf4b105d938f Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Wed, 20 May 2020 22:36:04 -0700 Subject: [PATCH] removed pointless wlan instance check in grpc wlan_link api since it is already being done when retrieving the wlan node --- daemon/core/api/grpc/server.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/daemon/core/api/grpc/server.py b/daemon/core/api/grpc/server.py index 5fae97dc..1095c3f7 100644 --- a/daemon/core/api/grpc/server.py +++ b/daemon/core/api/grpc/server.py @@ -1695,10 +1695,6 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer): ) -> WlanLinkResponse: session = self.get_session(request.session_id, context) wlan = self.get_node(session, request.wlan, context, WlanNode) - if not isinstance(wlan, WlanNode): - context.abort( - grpc.StatusCode.NOT_FOUND, f"wlan id {request.wlan} is not a wlan node" - ) if not isinstance(wlan.model, BasicRangeModel): context.abort( grpc.StatusCode.NOT_FOUND,