Skip to content

Commit

Permalink
Small refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
  • Loading branch information
felixwang9817 committed Nov 25, 2021
1 parent 588bd8b commit 5584f2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdk/python/feast/feature_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -1255,14 +1255,14 @@ def _augment_response_with_on_demand_transforms(
"customer_fv__daily_transactions").
result_rows: List of result rows to be augmented with on demand feature values.
"""
if len(requested_on_demand_feature_views) == 0:
return

requested_odfv_map = {
odfv.name: odfv for odfv in requested_on_demand_feature_views
}
requested_odfv_feature_names = requested_odfv_map.keys()

if len(requested_odfv_map) == 0:
return

odfv_feature_refs = defaultdict(list)
for feature_ref in feature_refs:
view_name, feature_name = feature_ref.split(":")
Expand Down

0 comments on commit 5584f2d

Please sign in to comment.