Gitleaks v1.0.0 (#75)

major bump
This commit is contained in:
Zachary Rice authored and GitHub committed 2018-07-20 20:02:52 -05:00
1 parent 91eb014f17
commit 1f80d14f3f
685 files changed
+143450 -17228

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
// +build !appengine,!gopherjs
package logrus
import (
"io"
"os"
"golang.org/x/crypto/ssh/terminal"
)
func checkIfTerminal(w io.Writer) bool {
switch v := w.(type) {
case *os.File:
return terminal.IsTerminal(int(v.Fd()))
default:
return false
}
}