Skip to content

Commit 77e30bd

Browse files
ekcaseyDanny Joyce
authored andcommitted
Style fixes - incorporates PR feedback
Signed-off-by: Emily Casey <[email protected]> Signed-off-by: Danny Joyce <[email protected]>
1 parent a3c1b5b commit 77e30bd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

wincred/wincred_windows.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,11 @@ func getTarget(serverURL string) (string, error) {
7272
return "", err
7373
}
7474

75-
targets := make([]string, 0)
75+
var targets []string
7676
for i := range creds {
7777
attrs := creds[i].Attributes
7878
for _, attr := range attrs {
79-
if strings.Compare(attr.Keyword, "label") == 0 &&
80-
bytes.Compare(attr.Value, []byte(credentials.CredsLabel)) == 0 {
79+
if attr.Keyword == "label" && bytes.Equal(attr.Value, []byte(credentials.CredsLabel)) {
8180
targets = append(targets, creds[i].TargetName)
8281
}
8382
}

0 commit comments

Comments
 (0)