We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c97a45 commit 09782c0Copy full SHA for 09782c0
x/bsonx/bsoncore/value.go
@@ -137,7 +137,6 @@ func (v Value) AsInt64() int64 {
137
}
138
i64 = int64(f64)
139
case TypeInt32:
140
- var ok bool
141
i32, _, ok := ReadInt32(v.Data)
142
if !ok {
143
panic(NewInsufficientBytesError(v.Data, v.Data))
@@ -170,7 +169,6 @@ func (v Value) AsInt64OK() (int64, bool) {
170
169
171
172
173
174
175
176
return 0, false
0 commit comments