ref: af08c84539f9353718604988ba27ae3c466860fc
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...)
}