DevClad-Inc / devclad

Consider using f-strings PYL-C0209
Performance
Minor
2 years ago2 years old
Formatting a regular string which could be a f-string
15        return (
16            location
17            if (bits.scheme and bits.netloc)
18            else "{proto}://{domain}{url}".format(19                proto="http" if settings.DEBUG else "https",
20                domain="localhost:5173" if settings.DEBUG else f"app.{site.domain}",
21                url=location,