You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe what should be investigated or refactored
The Assets class has a property, hash: string, and a setter (setHash()) that appear unused. Hashing for assets appears to be generated by a call to crypto.createHash("sha256").update(code).digest("hex") and then passed to relevant consumers.
We should examine if this hash property is truly necessary on the Assets class. If it is not, remove it. If it is, address the unused code.
Links to any relevant code
None.
Additional context
None.
The text was updated successfully, but these errors were encountered:
Right, the controller uses the hash to perform checks (see controller.js), but the property on Assets isn't given a meaningful value.
In the Assets constructor, we actually initialize the hash to "" and never use the setHash() function.
The Assets.hash property is set in yaml.tshere, which doesn't treat the hash as a property on the object and is instead something derived from the object.
Describe what should be investigated or refactored
The
Assets
class has a property,hash: string
, and a setter (setHash()
) that appear unused. Hashing for assets appears to be generated by a call tocrypto.createHash("sha256").update(code).digest("hex")
and then passed to relevant consumers.We should examine if this
hash
property is truly necessary on the Assets class. If it is not, remove it. If it is, address the unused code.Links to any relevant code
None.
Additional context
None.
The text was updated successfully, but these errors were encountered: