Style fixes [no ci]

This commit is contained in:
Andrey Smirnov
2014-02-18 01:00:49 +04:00
parent e51f226cdc
commit 19af0547e8
5 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ func (g *GpgSigner) SetKey(keyRef string) {
g.keyRef = keyRef
}
// SetKeyring allows to set custom keyring and secretkeyring
// SetKeyRing allows to set custom keyring and secretkeyring
func (g *GpgSigner) SetKeyRing(keyring, secretKeyring string) {
g.keyring, g.secretKeyring = keyring, secretKeyring
}
+1
View File
@@ -7,6 +7,7 @@ import (
"syscall"
)
// RunningOnTerminal checks whether stdout is terminal
func RunningOnTerminal() bool {
return terminal.IsTerminal(syscall.Stdout)
}
+3
View File
@@ -2,6 +2,9 @@
package utils
// RunningOnTerminal checks whether stdout is terminal
//
// Stub for FreeBSD, until in go1.3 terminal.IsTerminal would start working for FreeBSD
func RunningOnTerminal() bool {
return false
}