From 22dacb741fc532b8b9b240e68f17bfc4deb7e267 Mon Sep 17 00:00:00 2001 From: andrey Date: Fri, 26 Jan 2024 11:32:43 +0300 Subject: [PATCH] update nlreturn lint --- client_example_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client_example_test.go b/client_example_test.go index 0a887fb..e4a8845 100644 --- a/client_example_test.go +++ b/client_example_test.go @@ -82,6 +82,7 @@ func ExampleClient_Watch() { err = watcher.Watch(ctx, func(ctx context.Context, oldVar, newVar config.Value) error { fmt.Println("update example_enable old: ", oldVar.Bool(), " new:", newVar.Bool()) wg.Done() + return nil }, "example_enable") if err != nil { @@ -95,6 +96,7 @@ func ExampleClient_Watch() { err = watcher.Watch(ctx, func(ctx context.Context, oldVar, newVar config.Value) error { fmt.Println("update example_db_dsn old: ", oldVar.String(), " new:", newVar.String()) wg.Done() + return nil }, "example_db_dsn") if err != nil {