Skip to content

Commit 8514255

Browse files
pkaramolpantelis-karamolegkosnitrocode
authored
chore: function docs, linting errors (#3380)
* Function documentation and linting errors --------- Co-authored-by: Pantelis Karamolegkos <[email protected]> Co-authored-by: nitrocode <[email protected]>
1 parent a173e84 commit 8514255

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cmd/help_fmt.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ Use "{{.CommandPath}} [command] --help" for more information about a command.{{e
116116
`, flagHelpOutput)
117117
}
118118

119+
// to80CharCols takes a string s as input and returns a new string that is split
120+
// into multiple lines with each line having a maximum of 80 characters
119121
func to80CharCols(s string) string {
120122
var splitAt80 string
121123
splitSpaces := strings.Split(s, " ")

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (v *VersionCmd) Init() *cobra.Command {
2929
return &cobra.Command{
3030
Use: "version",
3131
Short: "Print the current Atlantis version",
32-
Run: func(cmd *cobra.Command, args []string) {
32+
Run: func(_ *cobra.Command, _ []string) {
3333
fmt.Printf("atlantis %s\n", v.AtlantisVersion)
3434
},
3535
}

0 commit comments

Comments
 (0)