From ff37133e24cf9f4d2215e0b9c91402c8c2742960 Mon Sep 17 00:00:00 2001 From: Daniel Ingraham Date: Wed, 2 Aug 2023 15:13:59 -0400 Subject: [PATCH] Revert `specstr(::PipPkgSpec)` to old short forum --- src/spec.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/spec.jl b/src/spec.jl index ed85f5a..7b74b67 100644 --- a/src/spec.jl +++ b/src/spec.jl @@ -150,6 +150,4 @@ validate_pip_editable(editable, version) = error("invalid pip version for editable install: must start with `@` but version is $(version)") end -function specstr(x::PipPkgSpec) - return x.version == "" ? x.name : string(x.name, " ", x.version) -end +specstr(x::PipPkgSpec) = x.version == "" ? x.name : string(x.name, " ", x.version)