[clang-format] Apply a clang-tidy suggestion, NFC
llvm-svn: 317793
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 2252dd9..dfeb5d9 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -466,7 +466,7 @@
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());