mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-08 19:32:15 +03:00
plugins/eddn: Remove the 'default values' from should_retrn & new_data
In *this* case the variables *are* used in the scope so become bound, so we can get away with bare type declaration.
This commit is contained in:
parent
2c11aef1be
commit
ce4a6ff898
@ -635,8 +635,8 @@ class EDDN:
|
|||||||
:param data: a dict containing the starport data
|
:param data: a dict containing the starport data
|
||||||
:param is_beta: whether or not we're currently in beta mode
|
:param is_beta: whether or not we're currently in beta mode
|
||||||
"""
|
"""
|
||||||
should_return: bool = False
|
should_return: bool
|
||||||
new_data: Dict[str, Any] = {}
|
new_data: Dict[str, Any]
|
||||||
should_return, new_data = killswitch.check_killswitch('capi.request./market', {})
|
should_return, new_data = killswitch.check_killswitch('capi.request./market', {})
|
||||||
if should_return:
|
if should_return:
|
||||||
logger.warning("capi.request./market has been disabled by killswitch. Returning.")
|
logger.warning("capi.request./market has been disabled by killswitch. Returning.")
|
||||||
@ -768,8 +768,8 @@ class EDDN:
|
|||||||
:param data: dict containing the outfitting data
|
:param data: dict containing the outfitting data
|
||||||
:param is_beta: whether or not we're currently in beta mode
|
:param is_beta: whether or not we're currently in beta mode
|
||||||
"""
|
"""
|
||||||
should_return: bool = False
|
should_return: bool
|
||||||
new_data: Dict[str, Any] = {}
|
new_data: Dict[str, Any]
|
||||||
should_return, new_data = killswitch.check_killswitch('capi.request./shipyard', {})
|
should_return, new_data = killswitch.check_killswitch('capi.request./shipyard', {})
|
||||||
if should_return:
|
if should_return:
|
||||||
logger.warning("capi.request./shipyard has been disabled by killswitch. Returning.")
|
logger.warning("capi.request./shipyard has been disabled by killswitch. Returning.")
|
||||||
@ -836,8 +836,8 @@ class EDDN:
|
|||||||
:param data: dict containing the shipyard data
|
:param data: dict containing the shipyard data
|
||||||
:param is_beta: whether or not we are in beta mode
|
:param is_beta: whether or not we are in beta mode
|
||||||
"""
|
"""
|
||||||
should_return: bool = False
|
should_return: bool
|
||||||
new_data: Dict[str, Any] = {}
|
new_data: Dict[str, Any]
|
||||||
should_return, new_data = killswitch.check_killswitch('capi.request./shipyard', {})
|
should_return, new_data = killswitch.check_killswitch('capi.request./shipyard', {})
|
||||||
if should_return:
|
if should_return:
|
||||||
logger.warning("capi.request./shipyard has been disabled by killswitch. Returning.")
|
logger.warning("capi.request./shipyard has been disabled by killswitch. Returning.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user