Skip to content

Commit 2d6b603

Browse files
committed
GODRIVER-2826 Clean up TODOs in comments. (#1243)
1 parent 374e369 commit 2d6b603

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

x/bsonx/bsoncore/value.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ func (v Value) IsNumber() bool {
5959

6060
// AsInt32 returns a BSON number as an int32. If the BSON type is not a numeric one, this method
6161
// will panic.
62-
//
63-
// TODO(skriptble): Add support for Decimal128.
6462
func (v Value) AsInt32() int32 {
6563
if !v.IsNumber() {
6664
panic(ElementTypeError{"bsoncore.Value.AsInt32", v.Type})
@@ -93,8 +91,6 @@ func (v Value) AsInt32() int32 {
9391

9492
// AsInt32OK functions the same as AsInt32 but returns a boolean instead of panicking. False
9593
// indicates an error.
96-
//
97-
// TODO(skriptble): Add support for Decimal128.
9894
func (v Value) AsInt32OK() (int32, bool) {
9995
if !v.IsNumber() {
10096
return 0, false
@@ -127,8 +123,6 @@ func (v Value) AsInt32OK() (int32, bool) {
127123

128124
// AsInt64 returns a BSON number as an int64. If the BSON type is not a numeric one, this method
129125
// will panic.
130-
//
131-
// TODO(skriptble): Add support for Decimal128.
132126
func (v Value) AsInt64() int64 {
133127
if !v.IsNumber() {
134128
panic(ElementTypeError{"bsoncore.Value.AsInt64", v.Type})
@@ -162,8 +156,6 @@ func (v Value) AsInt64() int64 {
162156

163157
// AsInt64OK functions the same as AsInt64 but returns a boolean instead of panicking. False
164158
// indicates an error.
165-
//
166-
// TODO(skriptble): Add support for Decimal128.
167159
func (v Value) AsInt64OK() (int64, bool) {
168160
if !v.IsNumber() {
169161
return 0, false

0 commit comments

Comments
 (0)