소스 검색

no leaks no report

zricethezav 8 년 전
부모
커밋
095279d60c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      leaks.go

+ 1 - 1
leaks.go

@@ -97,7 +97,7 @@ func start(repos []RepoDesc, owner *Owner, opts *Options) {
 			fmt.Printf("No Leaks detected for \x1b[35;2m%s\x1b[0m...\n\n", repo.url)
 		}
 
-		if opts.EnableJSON {
+		if opts.EnableJSON && len(report) != 0 {
 			outputGitLeaksReport(report, repo, opts)
 		}
 	}