1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-06-04 04:08:02 +02:00

Fix linting

This commit is contained in:
binwiederhier 2023-02-05 23:53:24 -05:00
parent 7cc8c81bd8
commit b5158adb51
3 changed files with 10 additions and 11 deletions

View file

@ -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())
}