From 11506dadc9c7cfcf425a857e49999071e55ffe1e Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 27 Jul 2022 06:55:19 -0700 Subject: in6addr-str: remove useless regsub. * stdlib/socket.tl (in6addr-str): Remove one of the two repetitions of a string substitution intended to be done once. The substitution is idempotent and therefore a second application of it is redundant regardless of intent. --- stdlib/socket.tl | 1 - 1 file changed, 1 deletion(-) diff --git a/stdlib/socket.tl b/stdlib/socket.tl index 7aecfc88..80a60ec5 100644 --- a/stdlib/socket.tl +++ b/stdlib/socket.tl @@ -252,7 +252,6 @@ (set addr.prefix prefix) addr))) ((r^$ #/[\da-fA-F]*(:[\da-fA-F]*)*/ str) - (upd str (regsub "::" "@")) (let* ((str-splat (regsub "::" "@" str)) (maj-pieces (spl #\@ str-splat))) (caseql (len maj-pieces) -- cgit v1.2.3