change a few renameFile's to rename

AFAIK, none of these ever operate on directories, but nor do I want to
explicitly check if they're files and fail if not.
This commit is contained in:
Joey Hess 2014-01-29 15:21:02 -04:00
parent 1669e80e85
commit 070ed4a766
4 changed files with 6 additions and 5 deletions

View file

@ -30,7 +30,7 @@ rotateLog logfile = go 0
| num > maxLogs = return ()
| otherwise = whenM (doesFileExist currfile) $ do
go (num + 1)
renameFile currfile nextfile
rename currfile nextfile
where
currfile = filename num
nextfile = filename (num + 1)