diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-12-16 17:05:34 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-12-16 17:28:04 +1100 |
commit | 4886b8350e0af56fd1d634c99e0f7502f23b9289 (patch) | |
tree | 860e1bb69071d918dcbd0e9083d893eef56b4142 /pkg/commands/os.go | |
parent | af26b5f3e0779fb218bb77506fbcd7da964942fe (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.go | 2 |
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 } |