mirror of https://github.com/knative/func.git
fix: remove redundant initialized check (#2881)
This commit is contained in:
parent
238e061a1c
commit
347a901c16
|
|
@ -304,9 +304,6 @@ func (c buildConfig) Prompt() (buildConfig, error) {
|
|||
if err != nil {
|
||||
return c, err
|
||||
}
|
||||
if !f.Initialized() {
|
||||
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)
|
||||
}
|
||||
if (f.Registry == "" && c.Registry == "" && c.Image == "") || c.Confirm {
|
||||
fmt.Println("A registry for function images is required. For example, 'docker.io/tigerteam'.")
|
||||
err := survey.AskOne(
|
||||
|
|
|
|||
Loading…
Reference in New Issue