rm some silly logic, better comments

This commit is contained in:
zricethezav committed 2018-03-12 17:50:02 -05:00
1 parent fa498287b9
commit 8e59bf766a
7 files changed
+60 -83

No files matched your search

+3 -3
View File
@@ -1,10 +1,10 @@
package main
import (
"testing"
"os"
"bufio"
"fmt"
"os"
"testing"
)
func TestCheckRegex(t *testing.T) {
@@ -50,7 +50,7 @@ func TestExternalRegex(t *testing.T) {
opts.RegexFile = "testregex.txt"
opts.loadExternalRegex()
leaks := doChecks("aws=\"AKIALALEMEL33243OLIAE",
Commit{}, &Repo{url:"someurl"})
Commit{}, &Repo{url: "someurl"})
if len(leaks) != 2 {
// leak from default regex, leak from external
t.Error()