提交 80dd5f55 编写于 作者: X X.FLY 提交者: 安正超

fix: remove unnecessary code (#150)

The parameter `key` do not set default value, so the value of parameter
`key` will not be `null`, even if the caller pass the value of `null`,
the code also works well.
上级 bfeb2261
......@@ -45,10 +45,6 @@ class Config implements ArrayAccess
{
$config = $this->config;
if (is_null($key)) {
return null;
}
if (isset($config[$key])) {
return $config[$key];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册