GenerateProtoBufCompare: do not generate unnecessary empty lines
This commit is contained in:
@@ -93,7 +93,6 @@ class GenerateProtoBufCompare {
|
||||
|
||||
repeatedFields.forEach { generateHelperMethodForRepeatedField(it, p) }
|
||||
|
||||
p.println()
|
||||
generatePredefined(p)
|
||||
|
||||
p.popIndent()
|
||||
@@ -103,7 +102,6 @@ class GenerateProtoBufCompare {
|
||||
}
|
||||
|
||||
fun generatePredefined(p: Printer) {
|
||||
p.println()
|
||||
p.println("fun checkStringIdEquals(old: Int, new: Int): Boolean {")
|
||||
p.println(" stringIdMap.get(old)?.let { return it == new }")
|
||||
p.println()
|
||||
|
||||
@@ -503,8 +503,6 @@ open class ProtoCompareGenerated(private val oldNameResolver: NameResolver, priv
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
|
||||
fun checkStringIdEquals(old: Int, new: Int): Boolean {
|
||||
stringIdMap.get(old)?.let { return it == new }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user