Skip to content

test if extension exists

Only add extension if the path does not yet end with the extension.

The assert is placed in order to catch if we mess up internally and give a not doted extension. Can also be removed if not liked. But I sometimes like those small asserts as they make sure that internal restrictions/conventions aren't violated by accident.

Merge request reports