Skip to content

Commit

Permalink
cm: use errors.New
Browse files Browse the repository at this point in the history
  • Loading branch information
ydnar committed Dec 28, 2024
1 parent 833bf32 commit 472bcf6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cm/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cm
import (
"bytes"
"encoding/json"
"fmt"
"errors"
"math"
"reflect"
"runtime"
Expand Down Expand Up @@ -321,9 +321,9 @@ type errorEntry struct {
}

func (errorEntry) MarshalJSON() ([]byte, error) {
return nil, fmt.Errorf("can't encode")
return nil, errors.New("MarshalJSON")
}

func (*errorEntry) UnmarshalJSON(_ []byte) error {
return fmt.Errorf("can't decode")
return errors.New("UnmarshalJSON")
}

0 comments on commit 472bcf6

Please sign in to comment.