remove .git from taskfile
All checks were successful
Lint / Lint (push) Successful in 1m46s

This commit is contained in:
skeris 2024-11-26 15:30:08 +03:00
parent ab89c0677d
commit ffc3d246f6
2 changed files with 8 additions and 3 deletions

@ -3,8 +3,8 @@ version: "3"
tasks: tasks:
update-linter: update-linter:
cmds: cmds:
- go get -u gitea.pena/PenaSide/linters-golang.git - go get -u gitea.pena/PenaSide/linters-golang
lint: lint:
cmds: cmds:
- task: update-linter - task: update-linter
- cmd: golangci-lint run -v -c $(go list -f '{{"{{"}}.Dir{{"}}"}}' -m gitea.pena/PenaSide/linters-golang.git)/.golangci.yml - cmd: golangci-lint run -v -c $(go list -f '{{"{{"}}.Dir{{"}}"}}' -m gitea.pena/PenaSide/linters-golang)/.golangci.yml

@ -29,7 +29,12 @@ func main() {
fmt.Println("Ошибка подключения к монго:", err) fmt.Println("Ошибка подключения к монго:", err)
return return
} }
defer client.Disconnect(ctx) defer func() {
err := client.Disconnect(ctx)
if err != nil {
fmt.Println("CAN NOT DISCONNECT", err)
}
} ()
collection := client.Database(mongoDBName).Collection(collectionName) collection := client.Database(mongoDBName).Collection(collectionName)