#1: Remove comments about compatibility check with exists Authlibs

This commit is contained in:
ErickSkrauch 2019-04-28 20:21:46 +03:00
parent 2c7a1625f3
commit 9250d53fb3
2 changed files with 1 additions and 5 deletions

View File

@ -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

View File

@ -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)
})
}