mirror of https://github.com/k3s-io/k3s
![]() Previously, if a write or sync error occurred, we would not have called Close(). This commit refactors ReplaceFile() so that we are sure to call Close(), and also attempts to delete the temporary file if errors occur. |
||
---|---|---|
.. | ||
codec | ||
equal | ||
files | ||
log | ||
panic | ||
test |