From 830bc9961af0947a5e14948808f19145afa7ddc7 Mon Sep 17 00:00:00 2001 From: sterni Date: Wed, 31 May 2023 12:48:04 +0200 Subject: chore: remove comments formerly meant for alignment /**/ is a nice way to align if statements which doesn't work with nixpkgs-fmt, since it'll reflow the comment to the line preceding the if. Consequently, we can delete these comments now. Change-Id: Ifa5327f846a903e07607b21f8eedbc32fc36f758 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8689 Reviewed-by: sterni Autosubmit: sterni Tested-by: BuildkiteCI --- nix/buildLisp/default.nix | 1 - nix/sparseTree/default.nix | 1 - users/sterni/nix/string/default.nix | 1 - 3 files changed, 3 deletions(-) diff --git a/nix/buildLisp/default.nix b/nix/buildLisp/default.nix index eb85f0ff51..0d68a2818b 100644 --- a/nix/buildLisp/default.nix +++ b/nix/buildLisp/default.nix @@ -513,7 +513,6 @@ let # See https://ccl.clozure.com/docs/ccl.html#building-definitions faslExt = - /**/ if targetPlatform.isPower && targetPlatform.is32bit then "pfsl" else if targetPlatform.isPower && targetPlatform.is64bit then "p64fsl" else if targetPlatform.isx86_64 && targetPlatform.isLinux then "lx64fsl" diff --git a/nix/sparseTree/default.nix b/nix/sparseTree/default.nix index bf56a5348c..7bfa472378 100644 --- a/nix/sparseTree/default.nix +++ b/nix/sparseTree/default.nix @@ -45,7 +45,6 @@ let let withLeading = p: if builtins.substring 0 1 p == "/" then p else "/" + p; fullPath = - /**/ if builtins.isPath path then path else if builtins.isString path then (root + withLeading path) else builtins.throw "Unsupported path type ${builtins.typeOf path}"; diff --git a/users/sterni/nix/string/default.nix b/users/sterni/nix/string/default.nix index 852ef2538f..381c8ddff7 100644 --- a/users/sterni/nix/string/default.nix +++ b/users/sterni/nix/string/default.nix @@ -87,7 +87,6 @@ let ({ out ? "", argIndex ? 0 }: token: { argIndex = argIndex + (if specifierWithArg token then 1 else 0); out = - /**/ if token == "%s" then out + builtins.elemAt args argIndex else if token == "%%" then out + "%" else if isSpecifier token then throw "Unsupported format specifier ${token}" -- cgit 1.4.1