Skip to content

Commit

Permalink
style: linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jahvon committed Oct 10, 2024
1 parent 82059b0 commit 6b7921b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func (c *Config) JSON() (string, error) {
return string(jsonBytes), nil
}

//nolint:gocognit
func (c *Config) Markdown() string {
mkdwn := "# Global Configurations\n"
mkdwn += fmt.Sprintf("**Current workspace:** `%s`\n", c.CurrentWorkspace)
Expand All @@ -102,7 +103,7 @@ func (c *Config) Markdown() string {
if c.Theme != "" {
mkdwn += fmt.Sprintf("**Theme**: %s\n", c.Theme)
}
if c.Interactive != nil {
if c.Interactive != nil { //nolint:nestif
mkdwn += "## Interactivity Settings\n"
if c.Interactive.Enabled {
mkdwn += "**Interactive mode is enabled**\n"
Expand Down

0 comments on commit 6b7921b

Please sign in to comment.