aliases: remove hacky workaround for warnings on strings (#457057)

This commit is contained in:
Wolfgang Walther
2025-10-30 18:35:25 +00:00
committed by GitHub
-5
View File
@@ -230,11 +230,6 @@ let
arg: lib.warn msg (v arg)
else if lib.isList v then
map (lib.warn msg) v
else if lib.isString v then
# Unlike the other cases, this changes the type of the value and
# is therefore a breaking change for some code, but its the best
# we can do.
{ __toString = lib.warn msg (lib.const v); }
else
# Cant do better than this, and a `throw` would be more
# disruptive for users…