Skip to content

Replace isNativeSimpleType with Boolean/Number check #310

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

Merged
merged 1 commit into from
Apr 13, 2021

Conversation

trivikr
Copy link
Contributor

@trivikr trivikr commented Apr 13, 2021

Issue #, if available:
N/A

Description of changes:
The target instanceof StringShape check is not required in isNativeSimpleType as it's already done in getInputValue.
The private method isNativeSimpleType can be removed as it's called only from getInputValue and checks for Boolean/Integer

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@trivikr trivikr merged commit de36124 into smithy-lang:main Apr 13, 2021
@trivikr trivikr deleted the remove-isNativeSimpleType branch April 13, 2021 16:41
srchase pushed a commit to srchase/smithy-typescript that referenced this pull request Mar 17, 2023
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.

2 participants