mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-15 15:03:17 +00:00
fix: Use preferred fmt.Fprintf funcion
This commit is contained in:
@@ -108,7 +108,7 @@ func writeMultipleFiles(content map[string]string) error {
|
|||||||
return fmt.Errorf("error creating output file %s: %v", filename, err)
|
return fmt.Errorf("error creating output file %s: %v", filename, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = file.WriteString(fmt.Sprintf("# Content from %s\n\n%s", url, c))
|
_, err = fmt.Fprintf(file, "# Content from %s\n\n%s", url, c)
|
||||||
file.Close()
|
file.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("error writing content to file %s: %v", filename, err)
|
return fmt.Errorf("error writing content to file %s: %v", filename, err)
|
||||||
|
|||||||
Reference in New Issue
Block a user