Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
COMTOP1 committed Feb 14, 2024
1 parent 72a77bd commit 1775d53
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions forwarder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ func (v *Views) run(config Config, interrupt chan os.Signal) {
}
continue
}
break
case "status":
log.Println(1)
_, ok := v.cache.Get(fmt.Sprintf("%s_1", t.Unique))
Expand Down Expand Up @@ -365,7 +364,6 @@ func (v *Views) run(config Config, interrupt chan os.Signal) {
continue
}
log.Println(7)
break
case "stop":
_, ok := v.cache.Get(fmt.Sprintf("%s_1", t.Unique))
if !ok {
Expand All @@ -383,7 +381,6 @@ func (v *Views) run(config Config, interrupt chan os.Signal) {
}
continue
}
break
default:
kill := v.errorResponse(fmt.Errorf("failed to get action: %s", t.Action), c, m.ID)
if kill {
Expand Down
3 changes: 0 additions & 3 deletions server/views/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ func (v *Views) Websocket(c echo.Context) error {
switch transportUniqueReturning.Payload.(type) {
case string:
receive = []byte(transportUniqueReturning.Payload.(string))
break
case map[string]interface{}:
receive, err = json.Marshal(transportUniqueReturning.Payload)
if err != nil {
Expand All @@ -157,7 +156,6 @@ func (v *Views) Websocket(c echo.Context) error {
return nil
}
log.Printf("Message received from %s: %s", responseTransporter.Server, msg)
break
case commonTransporter.ResponseTransporter:
receive, err = json.Marshal(transportUniqueReturning.Payload)
if err != nil {
Expand All @@ -169,7 +167,6 @@ func (v *Views) Websocket(c echo.Context) error {
return nil
}
log.Printf("Message received from %s: %s", responseTransporter.Server, msg)
break
default:
log.Printf("invalid returning message: %#v, server %s", transportUniqueReturning.Payload, responseTransporter.Server)
close(internalChannel)
Expand Down

0 comments on commit 1775d53

Please sign in to comment.