Skip to content

Commit

Permalink
chore: conversion: enable and apply gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
dsonck92 committed Jul 9, 2024
1 parent 35c79a2 commit 9024c7e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion conversion/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ linters:
- nestif
- lll
- gosec
- gofumpt
- godot
- gocritic
- gocognit
Expand Down
3 changes: 1 addition & 2 deletions conversion/identifier/file_identifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import (
"strings"
)

type FileIdentifier struct {
}
type FileIdentifier struct{}

func NewFileIdentifier() *FileIdentifier {
return &FileIdentifier{}
Expand Down
14 changes: 8 additions & 6 deletions conversion/infra/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ import (
"go.uber.org/zap/zapcore"
)

var StrScheduler = fmt.Sprintf("%-13s", "scheduler")
var StrPipeline = fmt.Sprintf("%-13s", "pipeline")
var StrBuilder = fmt.Sprintf("%-13s", "builder")
var StrWorkerStatus = fmt.Sprintf("%-13s", "worker_status")
var StrQueueStatus = fmt.Sprintf("%-13s", "queue_status")
var StrToolRunner = fmt.Sprintf("%-13s", "tool_runner")
var (
StrScheduler = fmt.Sprintf("%-13s", "scheduler")
StrPipeline = fmt.Sprintf("%-13s", "pipeline")
StrBuilder = fmt.Sprintf("%-13s", "builder")
StrWorkerStatus = fmt.Sprintf("%-13s", "worker_status")
StrQueueStatus = fmt.Sprintf("%-13s", "queue_status")
StrToolRunner = fmt.Sprintf("%-13s", "tool_runner")
)

var logger *zap.SugaredLogger

Expand Down
3 changes: 1 addition & 2 deletions conversion/router/health_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ import (
"github.com/kouprlabs/voltaserve/conversion/infra"
)

type HealthRouter struct {
}
type HealthRouter struct{}

func NewHealthRouter() *HealthRouter {
return &HealthRouter{}
Expand Down

0 comments on commit 9024c7e

Please sign in to comment.