Commit bf6786bb authored by Michael Yang's avatar Michael Yang
Browse files

fix tautology

parent ad887994
......@@ -102,7 +102,6 @@ func RunHandler(cmd *cobra.Command, args []string) error {
name := args[0]
// check if the model exists on the server
_, err = client.Show(context.Background(), &api.ShowRequest{Name: name})
if err != nil {
var statusError api.StatusError
switch {
case errors.As(err, &statusError) && statusError.StatusCode == http.StatusNotFound:
......@@ -112,7 +111,6 @@ func RunHandler(cmd *cobra.Command, args []string) error {
case err != nil:
return err
}
}
return RunGenerate(cmd, args)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment