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
Shift the file exist check to come after the `format_hint` check.
This change better co-locates the two distinct format types instead of interleaving them. Better to diverge initially based on the format type than if a file exists.
- This adds slight complexity to the `format_hint.filter()` and regresses the simplicity of the happy path when both conditionals are true.
- It is now however more easy to reason with the two distinct format types in mind; allowing to unify on return types (_which was previously a point of friction_), additionally reducing the four `Ok()` down to two.
0 commit comments