From 7108b767b2d3b48751fa740e555fbdd7e3be6415 Mon Sep 17 00:00:00 2001 From: Viacheslav Lotsmanov Date: Sun, 14 Jan 2024 13:45:17 +0200 Subject: [PATCH] =?UTF-8?q?clean-profile-gc-roots:=20Smartmatch=20with=20?= =?UTF-8?q?=E2=80=9CNone=E2=80=9D=20instead=20of=20=E2=80=9CNil=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Smartmatching with “Nil” is not reliable. --- clean-profile-gc-roots.raku | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clean-profile-gc-roots.raku b/clean-profile-gc-roots.raku index 2543984..abe9aad 100755 --- a/clean-profile-gc-roots.raku +++ b/clean-profile-gc-roots.raku @@ -542,7 +542,7 @@ package Cleanup { .map("\t"~*) ).flat.map("\t"~*); - if nixosVersionMapping !~~ Nil { + if nixosVersionMapping !~~ None { @lines.append: ( 'Keeping one latest generation of each NixOS version:',