Skip to content

Commit 30b7cef

Browse files
committed
Remove unnecessary initializing variables
1 parent 8c1fd17 commit 30b7cef

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

readthedocs/doc_builder/environments.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -409,17 +409,13 @@ class BuildEnvironment(BaseEnvironment):
409409

410410
def __init__(self, project=None, version=None, build=None, config=None,
411411
record=True, environment=None, update_on_success=True):
412-
self.project = project
412+
super(BuildEnvironment, self).__init__(project, environment)
413413
self.version = version
414414
self.build = build
415415
self.config = config
416416
self.record = record
417-
self.environment = environment or {}
418417
self.update_on_success = update_on_success
419418

420-
# TODO: remove this one, comes from super
421-
self.commands = []
422-
423419
self.failure = None
424420
self.start_time = datetime.utcnow()
425421

0 commit comments

Comments
 (0)