aboutsummaryrefslogtreecommitdiff
path: root/hotline/client_conn.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2023-04-19 17:53:28 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2023-04-19 17:53:28 -0700
commitc8bfd6061f5079f6c6c0155a2de1e8cd32d8a39a (patch)
treef85d63284948a159023080eae7703639f861403b /hotline/client_conn.go
parent902b8ac1e0d96f6c88a9bd352cb32b6bf69105d0 (diff)
Use strings.ReplaceAll method
Diffstat (limited to 'hotline/client_conn.go')
-rw-r--r--hotline/client_conn.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hotline/client_conn.go b/hotline/client_conn.go
index f92c1cd..0a5a108 100644
--- a/hotline/client_conn.go
+++ b/hotline/client_conn.go
@@ -254,5 +254,5 @@ func (cc *ClientConn) String() string {
"None.\n",
)
- return strings.Replace(template, "\n", "\r", -1)
+ return strings.ReplaceAll(template, "\n", "\r")
}