mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-19 22:44:35 +00:00
Since size_bytes is declared as non-nullable (nullable=False, default=0) in the Asset model, simplify the conditional checks: - Use 'if item.asset else None' when the asset relationship might be None - Access size_bytes directly when asset is guaranteed to exist (create endpoints) Amp-Thread-ID: https://ampcode.com/threads/T-019c354e-cbfb-77d8-acdd-0d066c16006e Co-authored-by: Amp <amp@ampcode.com>