Minor cleanup.

This commit is contained in:
Ferdinand Majerech 2014-07-26 18:20:57 +02:00
parent f11fbf3b36
commit 14a8e31fa5

View file

@ -937,12 +937,9 @@ final class Scanner
// Scan directive name
reader_.sliceBuilder.begin();
{
scope(failure) { reader_.sliceBuilder.finish(); }
scanDirectiveNameToSlice(startMark);
throwIfError();
}
const name = reader_.sliceBuilder.finish();
scanDirectiveNameToSlice(startMark);
throwIfError();
const name = reader_.sliceBuilder.finish();
reader_.sliceBuilder.begin();