Skip to content

Commit

Permalink
don't forget to golint
Browse files Browse the repository at this point in the history
  • Loading branch information
tlby committed Aug 19, 2020
1 parent 61a46fc commit af2dd29
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions link.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,11 +428,11 @@ func (pl *PL) getSV(dst *reflect.Value, src *C.SV, errf errFunc) bool {
case reflect.Func:
// Did this come from Go in the first place?
var id C.UV
var has_id C.bool
var hasID C.bool
pl.enter()
has_id = C.glue_getId(pl.thx, src, &id, C.CString(t.Kind().String()))
hasID = C.glue_getId(pl.thx, src, &id, C.CString(t.Kind().String()))
pl.leave()
if bool(has_id) {
if bool(hasID) {
liveMX.RLock()
ent := liveCB[uint(id)]
liveMX.RUnlock()
Expand Down Expand Up @@ -585,11 +585,11 @@ func (pl *PL) getSV(dst *reflect.Value, src *C.SV, errf errFunc) bool {
case reflect.Struct:
// Did this come from Go in the first place?
var id C.UV
var has_id C.bool
var hasID C.bool
pl.enter()
has_id = C.glue_getId(pl.thx, src, &id, C.CString(t.Kind().String()))
hasID = C.glue_getId(pl.thx, src, &id, C.CString(t.Kind().String()))
pl.leave()
if bool(has_id) {
if bool(hasID) {
liveMX.RLock()
ent := liveST[uint(id)]
liveMX.RUnlock()
Expand Down

0 comments on commit af2dd29

Please sign in to comment.