From 9250d53fb3639e2cd083bc3387b9283be5326c0e Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sun, 28 Apr 2019 20:21:46 +0300 Subject: [PATCH] #1: Remove comments about compatibility check with exists Authlibs --- http/textures.go | 2 -- http/textures_test.go | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/http/textures.go b/http/textures.go index c9f2dec..92cda48 100644 --- a/http/textures.go +++ b/http/textures.go @@ -41,14 +41,12 @@ func (cfg *Config) Textures(response http.ResponseWriter, request *http.Request) } else { mojangTextures := <-cfg.MojangTexturesQueue.GetTexturesForUsername(username) if mojangTextures == nil { - // TODO: test compatibility with exists authlibs response.WriteHeader(http.StatusNoContent) return } texturesProp := mojangTextures.DecodeTextures() if texturesProp == nil { - // TODO: test compatibility with exists authlibs response.WriteHeader(http.StatusInternalServerError) cfg.Logger.Error("Unable to find textures property") return diff --git a/http/textures_test.go b/http/textures_test.go index be6ae3a..d7c57e5 100644 --- a/http/textures_test.go +++ b/http/textures_test.go @@ -189,8 +189,6 @@ func TestConfig_Textures(t *testing.T) { config.CreateHandler().ServeHTTP(w, req) resp := w.Result() - assert.Equal(204, resp.StatusCode) // TODO: this is not confirmed behavior + assert.Equal(204, resp.StatusCode) }) } - -