mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 13:33:32 +02:00
gofmt
This commit is contained in:
+1
-1
@@ -285,7 +285,7 @@ func (c *Cli) editTemplate(template string, tmpFilePrefix string, templateData m
|
|||||||
if _, ok := templateData["meta"]; ok {
|
if _, ok := templateData["meta"]; ok {
|
||||||
mf := templateData["meta"].(map[string]interface{})["fields"]
|
mf := templateData["meta"].(map[string]interface{})["fields"]
|
||||||
if f, ok := edited["fields"].(map[string]interface{}); ok {
|
if f, ok := edited["fields"].(map[string]interface{}); ok {
|
||||||
for k, _ := range f {
|
for k := range f {
|
||||||
if _, ok := mf.(map[string]interface{})[k]; !ok {
|
if _, ok := mf.(map[string]interface{})[k]; !ok {
|
||||||
err := fmt.Errorf("Field %s is not editable", k)
|
err := fmt.Errorf("Field %s is not editable", k)
|
||||||
log.Error("%s", err)
|
log.Error("%s", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user