From cc62dd7f0f9905d75baff0d892fb273fa718ff70 Mon Sep 17 00:00:00 2001 From: Antoine Stevan <163861733+a-stevan@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:05:51 +0100 Subject: [PATCH] don't return anything from `toolkit` command (#992) i get the following LSP error in my editor, because it's true `main` does not return a `string` :thinking: ![image](https://github.com/user-attachments/assets/787f62f8-ef66-4ac4-ba30-c396d3cdd4d2) in this PR, i propose to truely return `nothing` from this _main_ command by `print`ing the help page. ### alternative we could also change the signature to `nothing -> string` --- toolkit.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit.nu b/toolkit.nu index a24445ae7..ea2998f4f 100644 --- a/toolkit.nu +++ b/toolkit.nu @@ -35,7 +35,7 @@ export def "check pr" [ } # View subcommands. -export def main []: nothing -> nothing { +export def main []: nothing -> string { help toolkit }