diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-11-28 12:50:23 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-11-28 12:50:23 +0100 |
| commit | 7bab6c76599fdfd34ea9bb064d871ed2be01d4c8 (patch) | |
| tree | 8200ead8926c0c5f11f750698760a0bcd93c230c /types | |
| parent | 7339e77c6eda5b96874dfc099d5c58da8ed53629 (diff) | |
Lint: Run godot fix
Full command: golangci-lint run --disable-all -E godot --fix
Diffstat (limited to 'types')
| -rw-r--r-- | types/error.go | 12 | ||||
| -rw-r--r-- | types/server.go | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/types/error.go b/types/error.go index a7f70b0..da5d971 100644 --- a/types/error.go +++ b/types/error.go @@ -8,16 +8,16 @@ import ( type ErrLevel int8 const ( - // All other errors, default + // All other errors, default. ErrOther ErrLevel = iota - // The erorr is just here as additional info + // The erorr is just here as additional info. ErrInfo - // The error is just here as a warning + // The error is just here as a warning. ErrWarning - // The error is fatal, the app cannot function + // The error is fatal, the app cannot function. ErrFatal ) @@ -27,12 +27,12 @@ type WrappedErrorMessage struct { Err error } -// NewWrappedError returns a WrappedErrorMessage and uses the error level from the parent +// NewWrappedError returns a WrappedErrorMessage and uses the error level from the parent. func NewWrappedError(message string, err error) *WrappedErrorMessage { return &WrappedErrorMessage{Level: ErrorLevel(err), Message: message, Err: err} } -// NewWrappedError returns a WrappedErrorMessage and uses the given error level from the parent +// NewWrappedError returns a WrappedErrorMessage and uses the given error level from the parent. func NewWrappedErrorLevel(level ErrLevel, message string, err error) *WrappedErrorMessage { return &WrappedErrorMessage{Level: level, Message: message, Err: err} } diff --git a/types/server.go b/types/server.go index 24db8f2..c15cb4e 100644 --- a/types/server.go +++ b/types/server.go @@ -33,7 +33,7 @@ type DiscoveryServers struct { type DiscoMapOrString map[string]string // The display name can either be a map or a string in the server list -// Unmarshal it by first trying a string and then the map +// Unmarshal it by first trying a string and then the map. func (DN *DiscoMapOrString) UnmarshalJSON(data []byte) error { var displayNameString string |
