mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-10 13:43:49 +02:00
fix:#7 fixed models lint
This commit is contained in:
@@ -18,7 +18,6 @@ package model
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -79,5 +78,5 @@ func (jt *JSONTime) UnmarshalJSON(b []byte) error {
|
||||
*jt = JSONTime(t)
|
||||
return nil
|
||||
}
|
||||
return errors.New(fmt.Sprintf("Invalid date format: %s", timeString))
|
||||
return fmt.Errorf("error parsing time string %s: %w", timeString, err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user