Skip to content

Commit

Permalink
Fix missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
p-ouellette committed Feb 14, 2021
1 parent a5d70ac commit 7600ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faiss.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (p *ParameterSpace) SetIndexParameter(idx *Index, name string, val float64)

c := C.faiss_ParameterSpace_set_index_parameter(p.ps, idx.idx, cname, C.double(val))
if c != 0 {
getLastError()
return getLastError()
}
return nil
}
Expand Down

0 comments on commit 7600ed8

Please sign in to comment.