CenterForDigitalHumanities / TinyNode

TinyThings in NodeJS
0 stars 1 forks source link

api.js update() waffles on `obj` #56

Closed cubap closed 5 months ago

cubap commented 5 months ago

https://github.com/CenterForDigitalHumanities/TinyNode/blob/2cca2506ec1d0aef47c5057577c8e14113a54d1d/public/scripts/api.js#L88

The obj variable is reassigned to JSON.parse() and then put back with JSON.stringify(). Unless there is some explicit validation reason for this, the reassignment can be avoided and then the obj does not need to be transformed.