Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voice command should not contain duplicate strings #436

Merged
merged 1 commit into from
May 19, 2021

Conversation

renonick87
Copy link
Contributor

Fixes #430

Risk

This PR makes minor API changes.

Testing Plan

  • I have verified that I have not introduced new warnings in this PR (or explain why below)
  • I have verified that this PR passes lint validation
  • I have run the unit tests with this PR
  • I have tested this PR against Core and verified behavior (if applicable, if not applicable, explain why below).

Unit Tests

Adds a unit test to ensure that the VoiceCommand class removes all duplicates.

Summary

The VoiceCommand class will now convert the provided string array into a Set to ensure uniqueness among the strings, then convert back to an array.

Changelog

Bug Fixes

Fixes the case where VoiceCommands could be sent with duplicates of the same string.

CLA

@renonick87 renonick87 merged commit 7ab00ae into develop May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Send voiceCommand with duplicate strings
2 participants