From 2cc5b582098ced000bf1892c244eae562a26fc8c Mon Sep 17 00:00:00 2001 From: WindSoilder Date: Mon, 3 Apr 2023 16:07:55 +0800 Subject: [PATCH] Replace `str join` with `str collect` (#434) `str collect` is deprecated. --- virtual_environments/conda.nu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/virtual_environments/conda.nu b/virtual_environments/conda.nu index ace8419..004f82a 100644 --- a/virtual_environments/conda.nu +++ b/virtual_environments/conda.nu @@ -17,7 +17,7 @@ export def-env activate [ $env_dir = $conda_info.root_prefix } - let old_path = (system-path | str collect (char esep)) + let old_path = (system-path | str join (char esep)) let new_path = if (windows?) { conda-create-path-windows $env_dir @@ -120,7 +120,7 @@ def conda-create-path-windows [env_dir: path] { let new_path = ([$env_path (system-path)] | flatten - | str collect (char esep)) + | str join (char esep)) { Path: $new_path } } @@ -132,7 +132,7 @@ def conda-create-path-unix [env_dir: path] { let new_path = ([$env_path $env.PATH] | flatten - | str collect (char esep)) + | str join (char esep)) { PATH: $new_path } }