Skip to content

Commit a3a3aee

Browse files
committed
Adding some default return statements.
1 parent d70339a commit a3a3aee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel_tuner/utils/directives.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,13 @@ def parse_size(size: Any, preprocessor: list = None, dimensions: dict = None) ->
210210
return ret_size
211211

212212

213-
def wrap_timing(code: str, lang: Language):
213+
def wrap_timing(code: str, lang: Language) -> str:
214214
"""Helper to wrap timing code around the provided code"""
215215
if is_cxx(lang):
216216
return end_timing_cxx(start_timing_cxx(code))
217217
elif is_fortran(lang):
218218
return wrap_timing_fortran(code)
219+
return ""
219220

220221

221222
def start_timing_cxx(code: str) -> str:

0 commit comments

Comments
 (0)