Skip to content

Commit 14bfd70

Browse files
committed
fix(network): remove unnecessary None checks (#85)
1 parent bc33054 commit 14bfd70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/openstack_mcp_server/tools/network_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ def update_floating_ip(
790790
"""
791791
conn = get_openstack_conn()
792792
update_args: dict = {}
793-
if description is not None:
793+
if description:
794794
update_args["description"] = description
795795
if port_id:
796796
update_args["port_id"] = port_id
@@ -1250,9 +1250,9 @@ def update_security_group(
12501250
"""
12511251
conn = get_openstack_conn()
12521252
update_args: dict = {}
1253-
if name is not None:
1253+
if name:
12541254
update_args["name"] = name
1255-
if description is not None:
1255+
if description:
12561256
update_args["description"] = description
12571257
if not update_args:
12581258
current = conn.network.get_security_group(security_group_id)

0 commit comments

Comments
 (0)