mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
refactor: Fix clang-tidy modernize-return-braced-init-list
This commit is contained in:
@@ -11,7 +11,7 @@ namespace swift::misc
|
||||
|
||||
CPropertyIndexList CPropertyIndexList::copyFrontRemoved() const
|
||||
{
|
||||
if (this->size() < 2) { return CPropertyIndexList(); }
|
||||
if (this->size() < 2) { return {}; }
|
||||
CPropertyIndexList copy(*this);
|
||||
copy.pop_front();
|
||||
return copy;
|
||||
|
||||
Reference in New Issue
Block a user