fix tautology
This commit is contained in:
parent
ad88799411
commit
bf6786bb39
1 changed files with 6 additions and 8 deletions
|
@ -102,7 +102,6 @@ func RunHandler(cmd *cobra.Command, args []string) error {
|
||||||
name := args[0]
|
name := args[0]
|
||||||
// check if the model exists on the server
|
// check if the model exists on the server
|
||||||
_, err = client.Show(context.Background(), &api.ShowRequest{Name: name})
|
_, err = client.Show(context.Background(), &api.ShowRequest{Name: name})
|
||||||
if err != nil {
|
|
||||||
var statusError api.StatusError
|
var statusError api.StatusError
|
||||||
switch {
|
switch {
|
||||||
case errors.As(err, &statusError) && statusError.StatusCode == http.StatusNotFound:
|
case errors.As(err, &statusError) && statusError.StatusCode == http.StatusNotFound:
|
||||||
|
@ -112,7 +111,6 @@ func RunHandler(cmd *cobra.Command, args []string) error {
|
||||||
case err != nil:
|
case err != nil:
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return RunGenerate(cmd, args)
|
return RunGenerate(cmd, args)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue