Skip to content

Commit 3f3298a

Browse files
committed
Rename inner so it's easier to understand in stack traces
1 parent f034420 commit 3f3298a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inertia/http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def clear_history(request):
237237
def inertia(component):
238238
def decorator(func):
239239
@wraps(func)
240-
def inner(request, *args, **kwargs):
240+
def process_inertia_response(request, *args, **kwargs):
241241
props = func(request, *args, **kwargs)
242242

243243
# if a response is returned, return it
@@ -246,6 +246,6 @@ def inner(request, *args, **kwargs):
246246

247247
return InertiaResponse(request, component, props)
248248

249-
return inner
249+
return process_inertia_response
250250

251251
return decorator

0 commit comments

Comments
 (0)