Skip to content

Commit e99fcfe

Browse files
committed
ref(relay): Slightly simplify creation of project configs
1 parent fbbd561 commit e99fcfe

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/sentry/relay/config.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,7 @@ def get_project_config(project_id, full_config=True):
9494
else:
9595
org_options = {}
9696

97-
# get the project options
98-
project_cfg = cfg.get('config')
99-
if project_cfg is None:
100-
project_cfg = {}
101-
cfg['config'] = project_cfg
97+
project_cfg = cfg['config']
10298

10399
invalid_releases = project.get_option(u'sentry:{}'.format(FilterTypes.RELEASES))
104100
if invalid_releases is not None:

0 commit comments

Comments
 (0)