summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/install/fish.go2
-rw-r--r--log.go3
2 files changed, 2 insertions, 3 deletions
diff --git a/cmd/install/fish.go b/cmd/install/fish.go
index f04e7c3..6b588db 100644
--- a/cmd/install/fish.go
+++ b/cmd/install/fish.go
@@ -46,5 +46,5 @@ end
complete -c {{.Cmd}} -a "(__complete_{{.Cmd}})"
`)).Execute(&buf, params)
- return string(buf.Bytes())
+ return buf.String()
}
diff --git a/log.go b/log.go
index 797a80c..c302955 100644
--- a/log.go
+++ b/log.go
@@ -1,7 +1,6 @@
package complete
import (
- "io"
"io/ioutil"
"log"
"os"
@@ -15,7 +14,7 @@ import (
var Log = getLogger()
func getLogger() func(format string, args ...interface{}) {
- var logfile io.Writer = ioutil.Discard
+ var logfile = ioutil.Discard
if os.Getenv(envDebug) != "" {
logfile = os.Stderr
}