Skip to content

Commit

Permalink
fix by linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Neznaykin committed Oct 22, 2023
1 parent 0f3b0d8 commit 1b58ed6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ import (
executor "github.com/bro-n-bro/spacebox-crawler/pkg/app"
)

// Version provided by ldflags
var Version = "develop"

const (
DefaultEnvFile = ".env"
EnvFile = "ENV_FILE"
)

// Version provided by ldflags
var Version = "develop"

func main() {
// try to get .env file from Environments
fileName, ok := os.LookupEnv(EnvFile)
Expand Down
2 changes: 1 addition & 1 deletion internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ var (
type (
App struct {
log *zerolog.Logger
version string
cmps []cmp
cfg Config
version string
}
cmp struct {
Service rep.Lifecycle
Expand Down

0 comments on commit 1b58ed6

Please sign in to comment.