mirror of https://github.com/jetkvm/kvm.git
Fix: linter errors
This commit is contained in:
parent
6ecb829334
commit
97bcb3c1ea
16
web.go
16
web.go
|
@ -290,10 +290,10 @@ func setupRouter() *gin.Engine {
|
||||||
if !opResult.Allowed {
|
if !opResult.Allowed {
|
||||||
running := currentSession.AudioInputManager.IsRunning()
|
running := currentSession.AudioInputManager.IsRunning()
|
||||||
c.JSON(200, gin.H{
|
c.JSON(200, gin.H{
|
||||||
"status": "cooldown",
|
"status": "cooldown",
|
||||||
"running": running,
|
"running": running,
|
||||||
"cooldown_ms_remaining": opResult.RemainingCooldown.Milliseconds(),
|
"cooldown_ms_remaining": opResult.RemainingCooldown.Milliseconds(),
|
||||||
"operation_id": opResult.OperationID,
|
"operation_id": opResult.OperationID,
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -352,10 +352,10 @@ func setupRouter() *gin.Engine {
|
||||||
if !opResult.Allowed {
|
if !opResult.Allowed {
|
||||||
running := currentSession.AudioInputManager.IsRunning()
|
running := currentSession.AudioInputManager.IsRunning()
|
||||||
c.JSON(200, gin.H{
|
c.JSON(200, gin.H{
|
||||||
"status": "cooldown",
|
"status": "cooldown",
|
||||||
"running": running,
|
"running": running,
|
||||||
"cooldown_ms_remaining": opResult.RemainingCooldown.Milliseconds(),
|
"cooldown_ms_remaining": opResult.RemainingCooldown.Milliseconds(),
|
||||||
"operation_id": opResult.OperationID,
|
"operation_id": opResult.OperationID,
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue