Skip to content

Commit d7feef8

Browse files
committed
drop unneeded else
1 parent c5d7c63 commit d7feef8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Payload/Body.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,8 @@ public function serialize()
125125

126126
if ($this->maxDepth === -1) {
127127
return $this->utilities()->serializeForRollbarInternal($result, array('extra'));
128-
} else {
129-
$objectHashes = array();
130-
return $this->utilities()->serializeForRollbar($result, array('extra'), $objectHashes, $this->maxDepth);
131128
}
129+
$objectHashes = array();
130+
return $this->utilities()->serializeForRollbar($result, array('extra'), $objectHashes, $this->maxDepth);
132131
}
133132
}

0 commit comments

Comments
 (0)