fix linter

This commit is contained in:
A.Unger committed 2020-07-15 15:31:27 +02:00
1 parent 57ac6b063a
commit 117b376509
8 files changed
+41 -45

No files matched your search

+1 -1
View File
@@ -3,8 +3,8 @@ package debug
import (
"context"
"github.com/owncloud/ocis-store/pkg/config"
"github.com/owncloud/ocis-pkg/v2/log"
"github.com/owncloud/ocis-store/pkg/config"
)
// Option defines a single option function.
+3 -3
View File
@@ -4,9 +4,9 @@ import (
"io"
"net/http"
"github.com/owncloud/ocis-pkg/v2/service/debug"
"github.com/owncloud/ocis-store/pkg/config"
"github.com/owncloud/ocis-store/pkg/version"
"github.com/owncloud/ocis-pkg/v2/service/debug"
)
// Server initializes the debug service and server.
@@ -34,7 +34,7 @@ func health(cfg *config.Config) func(http.ResponseWriter, *http.Request) {
// TODO(tboerger): check if services are up and running
io.WriteString(w, http.StatusText(http.StatusOK))
_, _ = io.WriteString(w, http.StatusText(http.StatusOK))
}
}
@@ -46,6 +46,6 @@ func ready(cfg *config.Config) func(http.ResponseWriter, *http.Request) {
// TODO(tboerger): check if services are up and running
io.WriteString(w, http.StatusText(http.StatusOK))
_, _ = io.WriteString(w, http.StatusText(http.StatusOK))
}
}