mirror of
https://github.com/appleboy/drone-telegram.git
synced 2026-06-14 22:11:12 +08:00
chore(makefile): change gofmt toll to gofumpt
This commit is contained in:
@@ -290,7 +290,7 @@ func (p Plugin) Exec() (err error) {
|
||||
if err != nil {
|
||||
return fmt.Errorf("unable to read file with template vars '%s': %v", p.Config.TemplateVarsFile, err)
|
||||
}
|
||||
var vars = make(map[string]string)
|
||||
vars := make(map[string]string)
|
||||
if err = json.Unmarshal(content, &vars); err != nil {
|
||||
return fmt.Errorf("unable to unmarshall template vars from JSON file '%s': %v", p.Config.TemplateVarsFile, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user