about summary refs log tree commit diff stats
path: root/commands/account
diff options
context:
space:
mode:
Diffstat (limited to 'commands/account')
-rw-r--r--commands/account/compose.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/account/compose.go b/commands/account/compose.go
index e61b593..ad48fe6 100644
--- a/commands/account/compose.go
+++ b/commands/account/compose.go
@@ -53,7 +53,7 @@ func buildBody(args []string) (string, error) {
 	for _, opt := range opts {
 		switch opt.Option {
 		case 'H':
-			if strings.Index(opt.Value, ":") != -1 {
+			if strings.Contains(opt.Value, ":") {
 				// ensure first colon is followed by a single space
 				re := regexp.MustCompile(`^(.*?):\s*(.*)`)
 				headers += re.ReplaceAllString(opt.Value, "$1: $2") + "\n"