Skip to content

Commit 83d2c26

Browse files
committed
Remove unnecessary initializing variables
1 parent d83515f commit 83d2c26

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
@@ -408,17 +408,13 @@ class BuildEnvironment(BaseEnvironment):
408408

409409
def __init__(self, project=None, version=None, build=None, config=None,
410410
record=True, environment=None, update_on_success=True):
411-
self.project = project
411+
super(BuildEnvironment, self).__init__(project, environment)
412412
self.version = version
413413
self.build = build
414414
self.config = config
415415
self.record = record
416-
self.environment = environment or {}
417416
self.update_on_success = update_on_success
418417

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

0 commit comments

Comments
 (0)