mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 20:01:14 +01:00
Make use of new ArrayRef::consume_* functions. (#5975)
Minor code simplifications.
This commit is contained in:
@@ -179,7 +179,7 @@ static auto RunAutoupdater(FileTestBase* test_base, const TestFile& test_file,
|
||||
|
||||
llvm::ArrayRef expected_filenames = filenames;
|
||||
if (filenames.size() > 1) {
|
||||
expected_filenames = expected_filenames.drop_front();
|
||||
expected_filenames.consume_front();
|
||||
}
|
||||
|
||||
return FileTestAutoupdater(
|
||||
|
||||
Reference in New Issue
Block a user