Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
Signed-off-by: James Lamb <[email protected]>
  • Loading branch information
jameslamb committed Jul 31, 2024
1 parent 4ee9631 commit be22c62
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion internal/validator/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ type model struct {
configPath string
err error
tty bool
containerStartupTimeout int
}

func (m model) Init() tea.Cmd {
Expand Down
5 changes: 0 additions & 5 deletions internal/validator/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ func Validate(image string, configPath string, cmd *cobra.Command, debug bool) (
tty = bufio.NewReader(os.Stdin)
isTty = false
}
startupTimeout, err := cmd.Flags().GetInt("startup-timeout")
if err != nil {
return false, err
}
m := model{
sub: make(chan checkResult),
configPath: configPath,
Expand All @@ -83,7 +79,6 @@ func Validate(image string, configPath string, cmd *cobra.Command, debug bool) (
debug: debug,
image: image,
tty: isTty,
containerStartupTimeout: startupTimeout,
}
p := tea.NewProgram(m, tea.WithInput(tty), tea.WithOutput(cmd.OutOrStderr()))
out, err := p.Run()
Expand Down

0 comments on commit be22c62

Please sign in to comment.