Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
tahadostifam committed Apr 24, 2024
1 parent 96a92ed commit f6c47da
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
5 changes: 1 addition & 4 deletions app/socket/chats_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,11 @@ func GetChat(event string, args MessageHandlerArgs) bool {
}

_, err := args.socketService.chatService.GetChat(staticID.(primitive.ObjectID))
if err != nil {
return false
}

// FIXME
// err = args.conn.WriteJSON(presenters.ChatAsJSON(event, chat))

return true
return err == nil
}

func CreateGroup(event string, args MessageHandlerArgs) bool {
Expand Down
4 changes: 0 additions & 4 deletions cmd/server/server.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package main

import (
"log"

"github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
"github.com/kavkaco/Kavka-Core/app/router"
Expand All @@ -22,8 +20,6 @@ func main() {
// Init Zap Logger
logger := logs.InitZapLogger()

log.Println(config.CurrentEnv)

// Define paths
TemplatesPath := config.ProjectRootPath + "/app/views/mail/"

Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,4 @@ require (
golang.org/x/sync v0.5.0 // indirect
golang.org/x/sys v0.17.0 // indirect
golang.org/x/text v0.14.0 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1
)
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,6 @@ gopkg.in/go-playground/assert.v1 v1.2.1 h1:xoYuJVE7KT85PYWrN730RguIQO0ePzVRfFMXa
gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE=
gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA=
gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
gopkg.in/natefinch/lumberjack.v2 v2.2.1 h1:bBRl1b0OH9s/DuPhuXpNl+VtCaJXFZ5/uEFST95x9zc=
gopkg.in/natefinch/lumberjack.v2 v2.2.1/go.mod h1:YD8tP3GAjkrDg1eZH7EGmyESg/lsYskCTPBJVb9jqSc=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
Expand Down

0 comments on commit f6c47da

Please sign in to comment.