Skip to content

Commit 419f53d

Browse files
Apply suggestions from code review
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Nikhil Sinha <131262146+nikhilsinhaparseable@users.noreply.github.com>
1 parent 4fb9620 commit 419f53d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/handlers/http/datasets.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ pub async fn put_dataset_labels(
164164
.into_inner()
165165
.labels
166166
.into_iter()
167+
.map(|label| label.trim().to_string())
168+
.filter(|label| !label.is_empty())
167169
.collect::<HashSet<_>>()
168170
.into_iter()
169171
.collect();

0 commit comments

Comments
 (0)