From a88809f91e83f3fd331bb4036a9f1d520109043c Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Sat, 16 Sep 2023 17:21:18 -0400 Subject: [PATCH] =?UTF-8?q?Retirer=20validation=20probl=C3=A9matique?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Si le handler était nil, la vérification serait probablement assez pour faire panic l'application, ce qui serait un problème que la validation soit présente ou non. --- cmd/api.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/api.go b/cmd/api.go index 26f18ce..71e1304 100644 --- a/cmd/api.go +++ b/cmd/api.go @@ -32,9 +32,6 @@ var apiCmd = &cobra.Command{ v0 := e.Group("/v0") handler := apihandler.New() - if &handler == nil { - log.Fatal("Newly created APIHandler is nil") - } handler.BottinAPIClient = bottindata.NewApiClient("bottin", "localhost", "http", 1312)