mirror of
https://github.com/grdl/git-get.git
synced 2026-02-05 05:34:42 +00:00
Fix issues found by mirror linter
This commit is contained in:
@@ -413,6 +413,7 @@ func TestRemote(t *testing.T) {
|
||||
func createTestDirTree(t *testing.T) string {
|
||||
t.Helper()
|
||||
root := test.TempDir(t, "")
|
||||
|
||||
err := os.MkdirAll(filepath.Join(root, "a", "b", "c"), os.ModePerm)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user