Skip to content

Commit 5323043

Browse files
committed
fmt
1 parent 83d9c48 commit 5323043

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/add.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package cmd
1919
import (
2020
"fmt"
2121

22-
tea "github.com/charmbracelet/bubbletea"
2322
"github.com/spf13/afero"
2423
"github.com/spf13/cobra"
2524

@@ -77,7 +76,7 @@ nitric add website my-site astro`,
7776
})
7877
tui.CheckErr(err)
7978

80-
if _, err := teax.NewProgram(websiteModel, tea.WithANSICompressor()).Run(); err != nil {
79+
if _, err := teax.NewProgram(websiteModel).Run(); err != nil {
8180
return err
8281
}
8382

pkg/view/tui/commands/website/new.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ func New(fs afero.Fs, args Args) (Model, error) {
177177
if pathInUse {
178178
return Model{}, fmt.Errorf("path %s is already in use", args.WebsitePath)
179179
}
180+
180181
if err := pathValidator(args.WebsitePath); err != nil {
181182
return Model{}, fmt.Errorf("path %s is invalid: %w", args.WebsitePath, err)
182183
}

0 commit comments

Comments
 (0)