Skip to content

Commit

Permalink
Drop support for go pre 1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblum committed Aug 26, 2019
1 parent 48d3d31 commit b3b9e2c
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 1,335 deletions.
1 change: 0 additions & 1 deletion corefoundation_1.10.go → corefoundation.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// +build darwin ios
// +build go1.10

package keychain

Expand Down
344 changes: 0 additions & 344 deletions corefoundation_pre1.10.go

This file was deleted.

3 changes: 1 addition & 2 deletions keychain_1.10.go → keychain.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// +build darwin
// +build go1.10

package keychain

Expand Down Expand Up @@ -430,7 +429,7 @@ func attrKey(ref C.CFTypeRef) string {
}

func convertResult(d C.CFDictionaryRef) (*QueryResult, error) {
m := CFDictionaryToMap(C.CFDictionaryRef(d))
m := CFDictionaryToMap(d)
result := QueryResult{}
for k, v := range m {
switch attrKey(k) {
Expand Down
Loading

0 comments on commit b3b9e2c

Please sign in to comment.