Rename unused parameters to '_'.

This commit is contained in:
Martin Smith
2025-02-28 19:52:43 +00:00
parent 29b4680873
commit 3788605127
12 changed files with 17 additions and 17 deletions

View File

@@ -5,14 +5,14 @@ import (
)
// Can't explicitly flush directory changes on Windows.
func fsyncDir(dir string) error { return nil }
func fsyncDir(_ string) error { return nil }
// Windows is not macOS.
func isMacENOTTY(err error) bool { return false }
func isMacENOTTY(_ error) bool { return false }
// We don't modify read-only on windows,
// since it will make us unable to delete the file,
// and this isn't common practice on this platform.
func setFileReadonly(f string, mode os.FileMode) error {
func setFileReadonly(_ string, _ os.FileMode) error {
return nil
}