@@ -186,7 +186,7 @@ handleFile(
186
186
// Write the .bad.<generator> file
187
187
auto badPath = expectedPath;
188
188
path::replace_extension (badPath, llvm::Twine (" bad." ).concat (gen_->fileExtension ()));
189
- if (auto exp = writeFile (badPath, generatedDocs))
189
+ if (auto exp = writeFile (badPath, generatedDocs); ! exp )
190
190
{
191
191
return report::error (" {}: \" {}\" " , exp .error (), badPath);
192
192
}
@@ -206,7 +206,7 @@ handleFile(
206
206
else if (testArgs.action == Action::update)
207
207
{
208
208
// Update the expected documentation
209
- if (auto exp = writeFile (expectedPath, generatedDocs))
209
+ if (auto exp = writeFile (expectedPath, generatedDocs); ! exp )
210
210
{
211
211
return report::error (" {}: \" {}\" " , exp .error (), expectedPath);
212
212
}
@@ -300,10 +300,8 @@ checkPath(
300
300
std::string const & configPath = files::appendPath (inputPath, " mrdocs.yml" );
301
301
if (files::exists (configPath)) {
302
302
Config::Settings::load_file (dirSettings, configPath, dirs_).value ();
303
- auto exp = dirSettings.normalize (dirs_);
304
- if (!exp ) {
305
- report::error (" {}: \" {}\" " , exp .error (), configPath);
306
- return ;
303
+ if (auto exp = dirSettings.normalize (dirs_); !exp ) {
304
+ return report::error (" {}: \" {}\" " , exp .error (), configPath);
307
305
}
308
306
}
309
307
0 commit comments