mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-06-04 04:08:02 +02:00
Fix linting
This commit is contained in:
parent
7cc8c81bd8
commit
b5158adb51
3 changed files with 10 additions and 11 deletions
log
|
@ -36,6 +36,7 @@ func (l Level) String() string {
|
|||
return "unknown"
|
||||
}
|
||||
|
||||
// MarshalJSON converts a level to a JSON string
|
||||
func (l Level) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(l.String())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue