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:
parent
c07766e1eb
commit
d5016bf44f
1 changed files with 0 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue