File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -904,8 +904,8 @@ func joinBatchErrors(errs []error) string {
904904 return buf .String ()
905905}
906906
907- // ErrorCodesFrom returns the list of server error codes contained in err.
908- func ErrorCodesFrom (err error ) []int {
907+ // ErrorCodes returns the list of server error codes contained in err.
908+ func ErrorCodes (err error ) []int {
909909 if err == nil {
910910 return nil
911911 }
Original file line number Diff line number Diff line change @@ -832,7 +832,7 @@ func TestErrorCodesFrom(t *testing.T) {
832832
833833 for _ , tt := range tests {
834834 t .Run (tt .name , func (t * testing.T ) {
835- require .Equal (t , tt .want , ErrorCodesFrom (tt .input ))
835+ require .Equal (t , tt .want , ErrorCodes (tt .input ))
836836 })
837837 }
838838}
You can’t perform that action at this time.
0 commit comments