summaryrefslogtreecommitdiffstats
path: root/pkg/commands/os.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-12-16 17:05:34 +1100
committerJesse Duffield <jessedduffield@gmail.com>2018-12-16 17:28:04 +1100
commit4886b8350e0af56fd1d634c99e0f7502f23b9289 (patch)
tree860e1bb69071d918dcbd0e9083d893eef56b4142 /pkg/commands/os.go
parentaf26b5f3e0779fb218bb77506fbcd7da964942fe (diff)
always hide rather than delete the credentials view, and don't log on error in case there is a user password in the error
Diffstat (limited to 'pkg/commands/os.go')
-rw-r--r--pkg/commands/os.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/os.go b/pkg/commands/os.go
index 827e6c420..ffc0516ad 100644
--- a/pkg/commands/os.go
+++ b/pkg/commands/os.go
@@ -217,7 +217,7 @@ func (c *OSCommand) CreateTempFile(filename, content string) (string, error) {
return "", err
}
- if _, err := tmpfile.Write([]byte(content)); err != nil {
+ if _, err := tmpfile.WriteString(content); err != nil {
c.Log.Error(err)
return "", err
}