Skip to content

Commit

Permalink
Update db.go
Browse files Browse the repository at this point in the history
  • Loading branch information
dk-lockdown authored Dec 15, 2021
1 parent cc4feb0 commit af150f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/config/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (r *DataSourceRole) UnmarshalText(text []byte) error {
return errors.New("can'r unmarshal a nil *DataSourceRole")
}
if r.unmarshalText(bytes.ToLower(text)) {
return fmt.Errorf("unrecognized protocal type: %q", text)
return fmt.Errorf("unrecognized protocol type: %q", text)
}
return nil
}
Expand All @@ -91,7 +91,7 @@ func (t *DataSourceType) UnmarshalText(text []byte) error {
return errors.New("can't unmarshal a nil *DataSourceRole")
}
if t.unmarshalText(bytes.ToLower(text)) {
return fmt.Errorf("unrecognized protocal type: %q", text)
return fmt.Errorf("unrecognized protocol type: %q", text)
}
return nil
}
Expand Down

0 comments on commit af150f0

Please sign in to comment.