From 6406ca90c7c7c93fff9857b3da304e899b0b4724 Mon Sep 17 00:00:00 2001 From: Alex Tocar Date: Fri, 29 Mar 2024 09:59:40 +0100 Subject: [PATCH] properly format the changes --- cmd/cloudflared/main.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/cmd/cloudflared/main.go b/cmd/cloudflared/main.go index 3dffdaa1..61d2c41d 100644 --- a/cmd/cloudflared/main.go +++ b/cmd/cloudflared/main.go @@ -135,21 +135,21 @@ To determine if an update happened in a script, check for error code 11.`, Name: "version", Action: func(c *cli.Context) (err error) { if c.Bool("short") { - fmt.Println(strings.Split(c.App.Version, " ")[0]) - return nil - } + fmt.Println(strings.Split(c.App.Version, " ")[0]) + return nil + } version(c) return nil }, Usage: versionText, Description: versionText, Flags: []cli.Flag{ - &cli.BoolFlag{ - Name: "short", - Aliases: []string{"s"}, - Usage: "print just the version number", - }, - }, + &cli.BoolFlag{ + Name: "short", + Aliases: []string{"s"}, + Usage: "print just the version number", + }, + }, }, } cmds = append(cmds, tunnel.Commands()...)