1
0
mirror of https://github.com/docker/docker-credential-helpers.git synced 2026-06-14 08:21:28 +05:30

Fix syntax typos and tests implementation for windows

Signed-off-by: Nassim 'Nass' Eddequiouaq <eddequiouaq.nassim@gmail.com>
This commit is contained in:
Nassim 'Nass' Eddequiouaq
2017-03-13 14:43:15 -07:00
parent 479de2a4f5
commit 1515d4547e
2 changed files with 30 additions and 4 deletions
+3 -3
View File
@@ -51,10 +51,10 @@ func (h Wincred) List() (map[string]string, error) {
resp := make(map[string]string)
for i := range creds {
attrs = creds[i].Attributes
attrs := creds[i].Attributes
for _, attr := range attrs {
if !strings.Compare(attr.Keyword, "label") &&
!bytes.Compare(attr.Value, []byte(credentials.CredsLabel)) {
if strings.Compare(attr.Keyword, "label") == 0 &&
bytes.Compare(attr.Value, []byte(credentials.CredsLabel)) == 0 {
resp[creds[i].TargetName] = creds[i].UserName
}