removed pointless wlan instance check in grpc wlan_link api since it is already being done when retrieving the wlan node

This commit is contained in:
Blake Harnden 2020-05-20 22:36:04 -07:00
parent c07766e1eb
commit d5016bf44f

View file

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