Skip to content

Commit 48e7c98

Browse files
committed
refactor: remove redundant str() conversion
Remove unnecessary str() conversion on request.url.path as it already returns a string type in Starlette.
1 parent 3e6bcf5 commit 48e7c98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/middleware/logging_middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async def dispatch(
4040
duration = time.time() - start_time
4141

4242
# Build full path including query string if present
43-
path = str(request.url.path)
43+
path = request.url.path
4444
if request.url.query:
4545
path = f"{path}?{request.url.query}"
4646

0 commit comments

Comments
 (0)