Fix build with -tags gokrazy (#5716)

Before this commit, go build -tags gokrazy ./... would fail with:

github.com/evcc-io/evcc/server/updater
server/updater/run_gokrazy.go:21:27: not enough arguments in call to NewRepo
	have (string, string)
	want (*util.Logger, string, string)
This commit is contained in:
Michael Stapelberg 2023-01-08 13:45:46 +01:00 • committed by GitHub
parent dbf1305210
commit f5fe313dc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ func Run(log *util.Logger, httpd webServer, outChan chan<- util.Param) {
u := &watch{
log: log,
outChan: outChan,
repo: NewRepo(owner, repository),
repo: NewRepo(log, owner, repository),
}
httpd.Router().PathPrefix("/api/update").HandlerFunc(u.updateHandler)