repochecker: Use SetWriteFileFunc to avoid writing any file on disk

This commit is contained in:
nemunaire 2025-04-07 10:29:06 +02:00
parent 8723f500cc
commit c2996b9f0a
2 changed files with 14 additions and 9 deletions

11
repochecker/null.go Normal file
View file

@ -0,0 +1,11 @@
package main
type nullFileWriter struct{}
func (fw *nullFileWriter) Write(p []byte) (int, error) {
return len(p), nil
}
func (fw *nullFileWriter) Close() error {
return nil
}