Skip to content

Commit 76a4878

Browse files
Apply suggestions from code review
Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
1 parent 16f6d57 commit 76a4878

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/develop/clients/go/produsage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ every few seconds). You can do this using a simple
4343
[`PING`]({{< relref "/commands/ping" >}}) command:
4444

4545
```go
46-
res, err := rdb.Ping(ctx).Result()
46+
err := rdb.Ping(ctx).Err()
4747

48-
if (err != nil) || (res != "PONG") {
48+
if err != nil {
4949
// Report failed health check.
5050
}
5151
```

0 commit comments

Comments
 (0)