Updating dependencies and fixing lint issues

This commit is contained in:
Julien Neuhart
2020-05-01 14:22:42 +02:00
parent edc5402aad
commit 42e357341a
18 changed files with 126 additions and 133 deletions

View File

@@ -25,7 +25,7 @@ func (f file) write(in io.Reader) error {
return err
}
defer out.Close() // nolint: errcheck
if err := out.Chmod(0644); err != nil {
if err := out.Chmod(0600); err != nil {
return err
}
if _, err := io.Copy(out, in); err != nil {