Skip to content

Commit b4a9bae

Browse files
authored
fix formatting (#305)
1 parent 97d5748 commit b4a9bae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

django_prometheus/exports.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@ def ExportToDjangoView(request):
115115
116116
You can use django_prometheus.urls to map /metrics to this view.
117117
"""
118-
if ("PROMETHEUS_MULTIPROC_DIR" in os.environ
119-
or "prometheus_multiproc_dir" in os.environ):
118+
if (
119+
"PROMETHEUS_MULTIPROC_DIR" in os.environ
120+
or "prometheus_multiproc_dir" in os.environ
121+
):
120122
registry = prometheus_client.CollectorRegistry()
121123
multiprocess.MultiProcessCollector(registry)
122124
else:

0 commit comments

Comments
 (0)