Skip to content

Commit 382b416

Browse files
GODRIVER-3086 Remove empty lines and debug stmt
1 parent 9e699c9 commit 382b416

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mongo/errors.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,10 @@ type LabeledError interface {
245245
// interface should not be used in production.
246246
type ServerError interface {
247247
LabeledError
248-
249248
// HasErrorCode returns true if the error has the specified code.
250249
HasErrorCode(int) bool
251-
252250
// HasErrorMessage returns true if the error contains the specified message.
253251
HasErrorMessage(string) bool
254-
255252
// HasErrorCodeWithMessage returns true if any of the contained errors have the specified code and message.
256253
HasErrorCodeWithMessage(int, string) bool
257254

@@ -307,7 +304,6 @@ func (e CommandError) HasErrorCode(code int) bool {
307304

308305
// ErrorCodes returns a list of error codes returned by the server.
309306
func (e CommandError) ErrorCodes() []int {
310-
fmt.Println(e.Code)
311307
return []int{int(e.Code)}
312308
}
313309

0 commit comments

Comments
 (0)