Skip to content

Commit 28d8665

Browse files
committed
Review comment changes
1 parent c57d367 commit 28d8665

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/toolchains/mbed_toolchain.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,10 +1410,11 @@ def is_library_supported(lib_type, target, toolchain):
14101410
"""
14111411
Check if a library type is supported by a toolchain for a given target.
14121412
1413-
Return True if the library type is supported, False if not supported, and
1413+
Return True if the library type is supported, False if not supported or
1414+
the target does not have an supported_c_libs attribute.
14141415
"""
1415-
if (
1416+
return (
14161417
hasattr(target, "supported_c_libs")
14171418
and toolchain.lower() in target.supported_c_libs
1418-
):
1419-
return lib_type in target.supported_c_libs[toolchain.lower()]
1419+
and lib_type in target.supported_c_libs[toolchain.lower()]
1420+
)

0 commit comments

Comments
 (0)