diff --git a/common/os.go b/common/os.go index 8a0c14f46..450388564 100644 --- a/common/os.go +++ b/common/os.go @@ -149,8 +149,7 @@ func WriteFileAtomic(filename string, data []byte, perm os.FileMode) error { return io.ErrShortWrite } // Close the file before renaming it, otherwise it will cause "The process - // cannot access the file because it is being used by another process." on windows or - // cause "cross-link error" on linux when you try to save it to another partition. + // cannot access the file because it is being used by another process." on windows. f.Close() return os.Rename(f.Name(), filename)