소스 검색

Merge pull request #557 from jmorganca/mxyng/cleanup

fix impossible condition
Michael Yang 1 년 전
부모
커밋
084e4c782a
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  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")
 	}