Skip to content

Commit

Permalink
Use fmt.Sprintf instead of strings sum
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
  • Loading branch information
Vladimir Popov committed Apr 16, 2021
1 parent d15a0d7 commit 0a5edb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tools/sandbox/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func DefaultDialOptions(genTokenFunc token.GeneratorFunc) []grpc.DialOption {

// Name creates unique name with the given prefix
func Name(prefix string) string {
return prefix + "-" + uuid.New().String()
return fmt.Sprintf("%s-%s", prefix, uuid.New().String())
}

// SetupDefaultNode setups NSMgr and default Forwarder on the given node
Expand Down

0 comments on commit 0a5edb3

Please sign in to comment.