ref: b90593c9b83f71de343e27cd1b489dff79bd4ac7
dir: /internal/utils/progress.go/
// Package utils provides misc utilities.
package utils
import (
"fmt"
"io"
)
// BestEffortFprintf writes one formatted message to w.
//
// It is nil-safe and ignores write errors by design.
func BestEffortFprintf(w io.Writer, format string, args ...any) {
if w == nil {
return
}
_, _ = fmt.Fprintf(w, format, args...)
}