Skip to content

Commit 86e461c

Browse files
Update packages/smithy-http/src/smithy_http/interceptors/user_agent.py
Co-authored-by: Nate Prewitt <[email protected]>
1 parent 7aac81c commit 86e461c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/smithy-http/src/smithy_http/interceptors/user_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def _build_os_metadata(self) -> list[UserAgentComponent]:
102102
* ``os/other``
103103
* ``os/other md/foobar#1.2.3``
104104
"""
105-
if self._platform_name is None or self._platform_name == "":
105+
if self._platform_name in (None, ""):
106106
return [UserAgentComponent("os", "other")]
107107

108108
plt_name_lower = self._platform_name.lower()

0 commit comments

Comments
 (0)