Skip to content

Commit 347a901

Browse files
authored
fix: remove redundant initialized check (knative#2881)
1 parent 238e061 commit 347a901

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cmd/build.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,6 @@ func (c buildConfig) Prompt() (buildConfig, error) {
304304
if err != nil {
305305
return c, err
306306
}
307-
if !f.Initialized() {
308-
return c, fmt.Errorf("no function has been initialized in %q. Please initialize a function by running:\n- func init --language <your language>", c.Path)
309-
}
310307
if (f.Registry == "" && c.Registry == "" && c.Image == "") || c.Confirm {
311308
fmt.Println("A registry for function images is required. For example, 'docker.io/tigerteam'.")
312309
err := survey.AskOne(

0 commit comments

Comments
 (0)