]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Level/Campaign.cpp
Added braces to all statements with clang-tidy and ran clang-format again
[lugaru.git] / Source / Level / Campaign.cpp
index 0ff7392de00f3d8198999893e3ad2d2b5198a183..410abcc7535c3177a203ee5f0dc79a70d82219e9 100644 (file)
@@ -45,8 +45,9 @@ std::vector<std::string> ListCampaigns()
     std::vector<std::string> campaignNames;
     while ((campaign = readdir(campaigns)) != NULL) {
         std::string name(campaign->d_name);
-        if (name.length() < 5)
+        if (name.length() < 5) {
             continue;
+        }
         if (!name.compare(name.length() - 4, 4, ".txt")) {
             campaignNames.push_back(name.substr(0, name.length() - 4));
         }