From 4443c4082ed094baf11b5c6cff280582776466b6 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 10 Jun 2021 01:55:44 +1000 Subject: Cleanup: remove redundant checks which have already been tested Note that these changes are limited simple cases as these kinds of changes could allow for errors when refactoring code when the known state is not so obvious. --- source/blender/windowmanager/intern/wm_init_exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/windowmanager') diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index 0dcb817ad15..15f0978f87d 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -501,7 +501,7 @@ void WM_exit_ex(bContext *C, const bool do_python) if ((has_edited && BLO_write_file( bmain, filename, fileflags, &(const struct BlendFileWriteParams){0}, NULL)) || - (undo_memfile && BLO_memfile_write_file(undo_memfile, filename))) { + (BLO_memfile_write_file(undo_memfile, filename))) { printf("Saved session recovery to '%s'\n", filename); } } -- cgit v1.2.3