Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
brimoor committed Sep 17, 2024
1 parent 3fb5263 commit 51e742e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fiftyone/core/materialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def _sync_source(self, fields=None, ids=None, update=True, delete=False):
if update:
self._sync_source_schema(fields=fields)

if fields is None or sample_fields is not None:
if fields is None or sample_fields:
pipeline = []

if ids is not None:
Expand Down Expand Up @@ -319,9 +319,7 @@ def _sync_source(self, fields=None, ids=None, update=True, delete=False):

self._materialized_dataset._aggregate(pipeline=pipeline)

if has_frame_fields and (
fields is None or frame_fields is not None
):
if has_frame_fields and (fields is None or frame_fields):
pipeline = []
post_pipeline = []

Expand Down

0 comments on commit 51e742e

Please sign in to comment.