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

2
debian/package.go vendored
View File

@@ -454,7 +454,7 @@ func (p *Package) VerifyFiles(packageRepo *Repository) (result bool, err error)
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) {
var err error
result := make([]string, len(p.Files))

View File

@@ -30,7 +30,7 @@ func (n *NullSigner) Init() error {
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 {

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
}

View File

@@ -7,6 +7,7 @@ import (
"syscall"
)
// RunningOnTerminal checks whether stdout is terminal
func RunningOnTerminal() bool {
return terminal.IsTerminal(syscall.Stdout)
}

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
}