Browse Source

fix impossible condition

Michael Yang 1 year ago
parent
commit
58ffa03d8b
1 changed files with 0 additions and 4 deletions
  1. 0 4
      cmd/cmd.go

+ 0 - 4
cmd/cmd.go

@@ -114,10 +114,6 @@ func RunHandler(cmd *cobra.Command, args []string) error {
 	}
 
 	mp := server.ParseModelPath(args[0])
-	if err != nil {
-		return err
-	}
-
 	if mp.ProtocolScheme == "http" && !insecure {
 		return fmt.Errorf("insecure protocol http")
 	}