Skip to content

Commit 029e094

Browse files
committed
removed a semicolon and the placeholder for the error which we used to locate it. Seems like SecItemCopyMatching is giving an error for some reason- no error on local machine
Signed-off-by: avaid96 <[email protected]>
1 parent 8fa18eb commit 029e094

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

osxkeychain/osxkeychain_darwin.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ func (h Osxkeychain) List() ([]string, []string, error) {
104104
if errMsg != nil {
105105
defer C.free(unsafe.Pointer(errMsg))
106106
goMsg := C.GoString(errMsg)
107-
goMsg = "Error is here"
108107
return nil, nil, errors.New(goMsg)
109108
}
110109
var listLen int

osxkeychain/osxkeychain_darwin_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ func TestOSXKeychainHelper(t *testing.T) {
3737
if err := helper.Delete(creds.ServerURL); err != nil {
3838
t.Fatal(err)
3939
}
40-
helper.Add(creds);
40+
helper.Add(creds)
4141
defer helper.Delete(creds.ServerURL)
4242
paths, accts, err := helper.List()
4343
if err != nil || len(paths) == 0 || len(accts) == 0 {
4444
t.Fatal(err)
4545
}
4646
helper.Add(creds1)
47+
defer helper.Delete(creds1.ServerURL)
4748
newpaths, newaccts, err := helper.List()
4849
if len(newpaths)-len(paths) != 1 || len(newaccts)-len(accts) != 1 {
4950
t.Fatal(err)
5051
}
51-
helper.Delete(creds1.ServerURL)
5252
}
5353

5454
func TestMissingCredentials(t *testing.T) {

0 commit comments

Comments
 (0)