Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Commit

Permalink
minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Jingtao Ren committed Jan 11, 2018
1 parent 458b86c commit a2249d9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/util/azureutil/absfactory/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ func NewClientFromSecret(kubecli kubernetes.Interface, namespace, absSecret stri
}
}()

w = &ABSClient{}
se, err := kubecli.CoreV1().Secrets(namespace).Get(absSecret, metav1.GetOptions{})
if err != nil {
return nil, fmt.Errorf("failed to get k8s secret: %v", err)
Expand All @@ -58,6 +57,5 @@ func NewClientFromSecret(kubecli kubernetes.Interface, namespace, absSecret stri
}

abs := bc.GetBlobService()
w.ABS = &abs
return w, nil
return &ABSClient{ABS: &abs}, nil
}

0 comments on commit a2249d9

Please sign in to comment.