Unleash / unleash-client-node

Unleash client SDK for Node.js
https://docs.getunleash.io
Apache License 2.0
210 stars 71 forks source link

refactor: resolveContextValue #630

Closed nunogois closed 2 months ago

nunogois commented 2 months ago

Follow up to https://github.com/Unleash/unleash-client-node/pull/629

Refactors resolveContextValue to: return context[field]?.toString() ?? context.properties?.[field]?.toString();, as discussed on that PR.

coveralls commented 2 months ago

Coverage Status

coverage: 90.772% (+0.05%) from 90.721% when pulling 72eb6840947e8d21bacdbd0b1bedaa3e8687c5c4 on refactor-resolve-context-value into 7649311f19b844a58494da4c88d0e555ee771acb on main.