ory-am/hydra

View on GitHub
x/sqlx.go

Summary

Maintainability
A
1 hr
Test Coverage

Method NullDuration.UnmarshalJSON has 5 return statements (exceeds 4 allowed).
Open

func (ns *NullDuration) UnmarshalJSON(data []byte) error {
    if ns == nil {
        return errors.New("json.RawMessage: UnmarshalJSON on nil pointer")
    }

Severity: Major
Found in x/sqlx.go - About 35 mins to fix

    Method Duration.UnmarshalJSON has 5 return statements (exceeds 4 allowed).
    Open

    func (ns *Duration) UnmarshalJSON(data []byte) error {
        if ns == nil {
            return errors.New("json.RawMessage: UnmarshalJSON on nil pointer")
        }
    
    
    Severity: Major
    Found in x/sqlx.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status