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
@@ -454,7 +454,7 @@ func (p *Package) VerifyFiles(packageRepo *Repository) (result bool, err error)
return return
} }
// FilepathsList returns list of paths to files in package repository // FilepathList returns list of paths to files in package repository
func (p *Package) FilepathList(packageRepo *Repository) ([]string, error) { func (p *Package) FilepathList(packageRepo *Repository) ([]string, error) {
var err error var err error
result := make([]string, len(p.Files)) result := make([]string, len(p.Files))
+1 -1
View File
@@ -30,7 +30,7 @@ func (n *NullSigner) Init() error {
func (n *NullSigner) SetKey(keyRef string) { func (n *NullSigner) SetKey(keyRef string) {
} }
func (g *NullSigner) SetKeyRing(keyring, secretKeyring string) { func (n *NullSigner) SetKeyRing(keyring, secretKeyring string) {
} }
func (n *NullSigner) DetachedSign(source string, destination string) error { func (n *NullSigner) DetachedSign(source string, destination string) error {
+1 -1
View File
@@ -45,7 +45,7 @@ func (g *GpgSigner) SetKey(keyRef string) {
g.keyRef = keyRef 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) { func (g *GpgSigner) SetKeyRing(keyring, secretKeyring string) {
g.keyring, g.secretKeyring = keyring, secretKeyring g.keyring, g.secretKeyring = keyring, secretKeyring
} }
+1
View File
@@ -7,6 +7,7 @@ import (
"syscall" "syscall"
) )
// RunningOnTerminal checks whether stdout is terminal
func RunningOnTerminal() bool { func RunningOnTerminal() bool {
return terminal.IsTerminal(syscall.Stdout) return terminal.IsTerminal(syscall.Stdout)
} }
+3
View File
@@ -2,6 +2,9 @@
package utils 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 { func RunningOnTerminal() bool {
return false return false
} }