From 7f7985b0e9deb8dc46f8f9d5ef2a57f59bc63353 Mon Sep 17 00:00:00 2001 From: velvettear Date: Thu, 30 Nov 2023 14:36:49 +0100 Subject: [PATCH] updated dependency and formatted code --- go.mod | 2 +- internal/api/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index dcc3910..492bc40 100644 --- a/go.mod +++ b/go.mod @@ -9,5 +9,5 @@ require ( github.com/kennykarnama/color-thief v0.0.0-20230222041546-c1bf65ec0808 github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect - golang.org/x/sys v0.14.0 // indirect + golang.org/x/sys v0.15.0 // indirect ) diff --git a/internal/api/server.go b/internal/api/server.go index 08103ac..26d6c97 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -33,7 +33,7 @@ func registerHandlers() { func serveRandomImageName(writer http.ResponseWriter, request *http.Request) { timestamp := time.Now().UnixMilli() var response response - response.Content, response.Size, response.error = internal.GetRandomImage() + response.Content, response.error = internal.GetRandomImage() if response.error != nil { response.StatusCode = 404 }