Skip to content

Commit

Permalink
Sprintf Changes
Browse files Browse the repository at this point in the history
Change Sprintf to be one line in GoString
  • Loading branch information
noejbrown committed Jul 15, 2022
1 parent 5c424f1 commit e9e0313
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions config/intentions_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,8 @@ func (c *IntentionsServicesConfig) GoString() string {
}

if len(c.Names) > 0 {
return fmt.Sprintf(
"Names:%s",
c.Names,
)
return fmt.Sprintf("Names:%s",c.Names,)
} else {
return fmt.Sprintf(
"Regexp:%s",
StringVal(c.Regexp),
)
return fmt.Sprintf("Regexp:%s",StringVal(c.Regexp),)
}
}

0 comments on commit e9e0313

Please sign in to comment.