6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-04 16:14:48 +00:00

Fix issues found by mirror linter

This commit is contained in:
Grzegorz Dlugoszewski
2025-08-24 18:01:42 +02:00
parent 0db5ba6f5a
commit 08f3264cd0
4 changed files with 4 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ func (r *Repo) writeFile(filename string, content string) {
file, err := os.OpenFile(path, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
checkFatal(r.t, err)
_, err = file.Write([]byte(content))
_, err = file.WriteString(content)
checkFatal(r.t, err)
}