Skip to content

Commit 85a2e68

Browse files
committed
改进
1 parent 1f64552 commit 85a2e68

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Model.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ public function __construct(array | object $data = [])
148148
$this->initialize();
149149

150150
// 初始化数据
151-
if (!empty($data)) {
152-
$this->initializeData($data);
153-
}
151+
$this->initializeData($data);
154152
}
155153

156154
protected function initialize()

0 commit comments

Comments
 (0)