Skip to content

Commit

Permalink
refactor: cmd server
Browse files Browse the repository at this point in the history
  • Loading branch information
labasubagia committed Sep 15, 2023
1 parent 53ee1ec commit 3628fbe
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ var serverCmd = &cobra.Command{
logger.Info().Msgf("use logger %s", config.LogType)

// repository
dbType, err := cmd.Flags().GetString("database")
if err == nil {
config.DBType = strings.ToLower(dbType)
}
repo, err := repository.NewRepository(config, logger)
if err != nil {
logger.Fatal().Err(err).Msg("failed to load repository")
Expand Down

0 comments on commit 3628fbe

Please sign in to comment.