Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
kdivanov committed Sep 9, 2024
1 parent ce4943c commit 6c9ee7c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
4 changes: 1 addition & 3 deletions pkg/controller/dev_panel_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/coretrix/hitrix/pkg/dto/list"
"github.com/coretrix/hitrix/pkg/entity"
errorhandling "github.com/coretrix/hitrix/pkg/error_handling"
//nolint
hitrixErrors "github.com/coretrix/hitrix/pkg/errors"
accountModel "github.com/coretrix/hitrix/pkg/model/account"
"github.com/coretrix/hitrix/pkg/redis"
Expand Down Expand Up @@ -93,9 +94,6 @@ func (controller *DevPanelController) PostLoginDevPanelAction(c *gin.Context) {
loginForm := accountModel.LoginDevForm{}
token, refreshToken, err := loginForm.Login(c)

//TODO Krasi: check WTF
_ = hitrixErrors.HandleErrors(nil)

errType, ok := err.(hitrixErrors.FieldErrors)

if ok && errType != nil {
Expand Down
3 changes: 1 addition & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/fatih/color"

"github.com/coretrix/hitrix/service"
//nolint
"github.com/coretrix/hitrix/service/component/app"
)

Expand Down Expand Up @@ -81,8 +82,6 @@ func (h *Hitrix) runDynamicScrips(ctx context.Context, code string) {
panic(fmt.Sprintf("unknown script %s", code))
}

//TODO Krasi: check WTF
app.Debug()
defScript := def.(app.IScript)
defScript.Run(ctx, &exit{s: h}, service.DI().OrmEngine().Clone())

Expand Down
4 changes: 0 additions & 4 deletions service/component/app/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,3 @@ type Intermediate interface {
type Optional interface {
Active() bool
}

func Debug() {
return
}
2 changes: 1 addition & 1 deletion service/component/fcm/fcm.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package fcm

import (
"context"
"firebase.google.com/go/v4/messaging"

firebase "firebase.google.com/go/v4"
"firebase.google.com/go/v4/messaging"
)

type FCM interface {
Expand Down
2 changes: 1 addition & 1 deletion service/component/fcm/mocks/fcm.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package mocks

import (
"context"
"firebase.google.com/go/v4/messaging"

"firebase.google.com/go/v4/messaging"
"github.com/stretchr/testify/mock"
)

Expand Down

0 comments on commit 6c9ee7c

Please sign in to comment.