Skip to content

Commit

Permalink
Fix typo gameserverallocations (#1676)
Browse files Browse the repository at this point in the history
Fix error message and comment.
  • Loading branch information
aLekSer authored Jul 6, 2020
1 parent f627311 commit a34f001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/gameserverallocations/allocator.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ type response struct {
err error
}

// NewAllocator creates an instance off Allocator
// NewAllocator creates an instance of Allocator
func NewAllocator(policyInformer multiclusterinformerv1.GameServerAllocationPolicyInformer, secretInformer informercorev1.SecretInformer,
kubeClient kubernetes.Interface, readyGameServerCache *ReadyGameServerCache) *Allocator {
ah := &Allocator{
Expand Down Expand Up @@ -403,7 +403,7 @@ func (c *Allocator) getClientCertificates(namespace, secretName string) (clientC
return nil, nil, nil, err
}
if secret == nil || len(secret.Data) == 0 {
return nil, nil, nil, fmt.Errorf("secert %s does not have data", secretName)
return nil, nil, nil, fmt.Errorf("secret %s does not have data", secretName)
}

// Create http client using cert
Expand Down

0 comments on commit a34f001

Please sign in to comment.