Skip to content

Commit cbeabf2

Browse files
seapaganclaude
andcommitted
refactor: remove redundant str() conversion
Remove unnecessary str() conversion on request.url.path as it already returns a string type in Starlette. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 3e6bcf5 commit cbeabf2

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)