e4dfaf96

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Collapse writeFromFS into convertAndWrite (#269)

writeFromFS was convertAndWrite with an identity (io.Copy) converter — the
two functions were identical except for the converter passed. Have
ImportMedia's switch select the converter (with a verbatim-copy closure for
photos) and call convertAndWrite once, removing the duplicated
open/defer-close/WriteConverted block. No behavior change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Reviewed-on: https://codeberg.org/mtlynch/little-moments/pulls/269

Suite timing

Time to Start Worker time Duration Time to finish
Config 2s 12s 12s 14s
Eval 12s 2m24s 2m24s 2m36s
Build 33s 9m40s 1m35s 2m08s
Deploy 2m42s 3m24s 3m24s 6m07s
Suite 2s 15m41s 6m05s 6m07s

Timeline

0s1m2m3m4m5m6m