Do not need to write to the file if no changes were made