Skip to content

Commit

Permalink
try to avoid code scanning error
Browse files Browse the repository at this point in the history
  • Loading branch information
vruge authored and oroulet committed Apr 27, 2022
1 parent f61e0bb commit 4f48eb2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions asyncua/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ async def create_subscription(
_logger.info(f"Result from subscription update: {results}")
return subscription

def get_subscription_revised_params(
def get_subscription_revised_params( # type: ignore
self,
params: ua.CreateSubscriptionParameters,
results: ua.CreateSubscriptionResult,
Expand All @@ -576,7 +576,7 @@ def get_subscription_revised_params(
and results.RevisedLifetimeCount == params.RequestedLifetimeCount
and results.RevisedMaxKeepAliveCount == params.RequestedMaxKeepAliveCount
):
return None
return # type: ignore
_logger.warning(
f"Revised values returned differ from subscription values: {results}"
)
Expand All @@ -603,7 +603,6 @@ def get_subscription_revised_params(
# update LifetimeCount but chances are it will be re-revised again
modified_params.RequestedLifetimeCount = results.RevisedLifetimeCount
return modified_params
return None

def get_keepalive_count(self, period) -> int:
"""
Expand Down

0 comments on commit 4f48eb2

Please sign in to comment.