Skip to content

Commit f54a48a

Browse files
committed
chore: fix lint findings (ruff import order, mypy unreachable guard)
1 parent 4abc5c5 commit f54a48a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

samcli/lib/package/language_extensions_packaging.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
import copy
1010
import itertools
11-
import jmespath
1211
import logging
1312
import re
1413
from collections import Counter
1514
from typing import Any, Dict, List, Optional, Tuple
1615

1716
import click
17+
import jmespath
1818
from botocore.utils import set_value_from_jmespath
1919

2020
from samcli.lib.cfn_language_extensions.models import (
@@ -124,8 +124,6 @@ def _get_prop_value(props: Dict[str, Any], prop_name: str) -> Optional[Any]:
124124
"""Read a property by jmespath path. Supports flat keys ("CodeUri") and
125125
dotted paths ("Command.ScriptLocation"). Returns None if missing.
126126
"""
127-
if not isinstance(props, dict):
128-
return None
129127
return jmespath.search(prop_name, props)
130128

131129

0 commit comments

Comments
 (0)