mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-01 15:20:29 +00:00
fix linter/test errors
This commit is contained in:
parent
0c968de1fb
commit
d7fd68765a
40 changed files with 207 additions and 212 deletions
|
@ -24,7 +24,6 @@ func GetTestMailer() (*Mailer, error) {
|
|||
|
||||
// Unmarshal JSON
|
||||
err = json.Unmarshal(bytes, mailer)
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
@ -48,7 +48,6 @@ func render(tpl string, data TemplateProps) (string, error) {
|
|||
var tplBuffer bytes.Buffer
|
||||
|
||||
err = tmpl.Execute(&tplBuffer, data)
|
||||
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue