Skip to content
Snippets Groups Projects
Commit c3b62aab authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

expand the returns to included the case for None

parent 9d5fdffa
No related branches found
No related tags found
2 merge requests!39Split logfile templates usage,!29Restructure log location
Pipeline #370262 passed
......@@ -58,7 +58,7 @@ def create_log_file_names(
action: str,
date: str = call_date_iso,
toolchain: str = None,
) -> str:
) -> Union[str, None]:
"""Create log file names.
This function creates the log file names for either the installer or
......@@ -86,10 +86,12 @@ def create_log_file_names(
Returns
-------
str
str or None
log file name
installer_log_file_name or build_log_file_name depending on the
parameters given.
If the action is not one that changes the files on disk ( info only actions)
then None is returned.
"""
if toolchain:
# if toolchain is given, then we build the build_log_file_name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment