Skip to content

Commit 193c0e4

Browse files
committed
Inline variable used only once.
1 parent b2c9d88 commit 193c0e4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Vector.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@ public function crossProduct(Vector $other): self
157157
*/
158158
public function normalize(): self
159159
{
160-
$norm = $this->l2norm();
161-
162-
return self::fromMatrix($this->divideScalar($norm));
160+
return self::fromMatrix($this->divideScalar($this->l2norm()));
163161
}
164162

165163
/**

0 commit comments

Comments
 (0)