fix: lint
This commit is contained in:
parent
5a0cee2fc5
commit
20a5994b17
@ -448,17 +448,17 @@ func (s *HandleTaskUpdateLastUpdated) Handle(msg *message.Message) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var taskIDInt int64
|
var taskIDInt int64
|
||||||
switch taskID.(type) {
|
switch v := taskID.(type) {
|
||||||
case int64:
|
case int64:
|
||||||
taskIDInt = taskID.(int64)
|
taskIDInt = v
|
||||||
case int:
|
case int:
|
||||||
taskIDInt = int64(taskID.(int))
|
taskIDInt = int64(v)
|
||||||
case int32:
|
case int32:
|
||||||
taskIDInt = int64(taskID.(int32))
|
taskIDInt = int64(v)
|
||||||
case float64:
|
case float64:
|
||||||
taskIDInt = int64(taskID.(float64))
|
taskIDInt = int64(v)
|
||||||
case float32:
|
case float32:
|
||||||
taskIDInt = int64(taskID.(float32))
|
taskIDInt = int64(v)
|
||||||
default:
|
default:
|
||||||
log.Errorf("Event payload does not contain a valid task ID")
|
log.Errorf("Event payload does not contain a valid task ID")
|
||||||
return
|
return
|
||||||
|
@ -17,10 +17,11 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.vikunja.io/api/pkg/events"
|
|
||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"code.vikunja.io/api/pkg/events"
|
||||||
|
|
||||||
"code.vikunja.io/api/pkg/files"
|
"code.vikunja.io/api/pkg/files"
|
||||||
"code.vikunja.io/api/pkg/user"
|
"code.vikunja.io/api/pkg/user"
|
||||||
"code.vikunja.io/web"
|
"code.vikunja.io/web"
|
||||||
|
@ -17,9 +17,10 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.vikunja.io/api/pkg/events"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"code.vikunja.io/api/pkg/events"
|
||||||
|
|
||||||
"xorm.io/builder"
|
"xorm.io/builder"
|
||||||
"xorm.io/xorm"
|
"xorm.io/xorm"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user