Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Honor explicitly set default value (#271)
When evaluating flags, the test harness has relied on the [`inferDefaultFromFlag`][1] to replace an explicitly null value with an inferred default value of the correct type. This kind of magic only leads to confusion (hence this PR), and isn't necessary. SDKs should be able to handle a null default as well as any other type. [1]: https://github.com/launchdarkly/sdk-test-harness/blob/cb433a1206c5190796c021605c401b5cbaf5799c/sdktests/helpers.go#L137
- Loading branch information