fix: remove redundant initialized check (#2881)

This commit is contained in:
Luke Kingland 2025-06-27 16:10:08 +09:00 committed by GitHub
parent 238e061a1c
commit 347a901c16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 3 deletions

View File

@ -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(