[clang-format] Apply a clang-tidy suggestion, NFC

llvm-svn: 317793
This commit is contained in:
Krasimir Georgiev 2017-11-09 15:12:17 +00:00
parent 0ccb256dae
commit 1696bb6523
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ template <> struct DocumentListTraits<std::vector<FormatStyle>> {
if (Index >= Seq.size()) {
assert(Index == Seq.size());
FormatStyle Template;
if (Seq.size() > 0 && Seq[0].Language == FormatStyle::LK_None) {
if (!Seq.empty() && Seq[0].Language == FormatStyle::LK_None) {
Template = Seq[0];
} else {
Template = *((const FormatStyle *)IO.getContext());