Skip to content

Commit 1e51191

Browse files
committed
Since we have total control over this 'started' metadata flag, we know it's always of type int and can simplify this code a bit.
1 parent fb5094d commit 1e51191

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Storage/Meta.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ private function getStartTime(string $storageIdentifier): int
124124
{
125125
$metaData = $this->storage->read($storageIdentifier);
126126
if (!empty($metaData) && array_key_exists('started', $metaData)) {
127-
assert(is_numeric($metaData['started']));
127+
assert(is_int($metaData['started']));
128128

129-
return (int) $metaData['started'];
129+
return $metaData['started'];
130130
}
131131

132132
return 0;

0 commit comments

Comments
 (0)