Commit 4be03946 authored by Sydney Acksman's avatar Sydney Acksman

Remove proto2 check from generator

parent 5caa44e0
......@@ -59,7 +59,7 @@ void SourceGeneratorBase::WriteGeneratedCodeAttributes(io::Printer* printer) {
}
std::string SourceGeneratorBase::class_access_level() {
return (IsDescriptorProto(descriptor_) || this->options()->internal_access) ? "internal" : "public";
return this->options()->internal_access ? "internal" : "public";
}
const Options* SourceGeneratorBase::options() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment