Skip to content

Commit 7a3fbf4

Browse files
mkruskal-googlethomasvl
authored andcommitted
Fix accidentally inverted if statement
1 parent 90b174e commit 7a3fbf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/protoc-gen-swift/FileGenerator.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class FileGenerator {
9090
let editionPath = IndexPath(index: Google_Protobuf_FileDescriptorProto.FieldNumbers.edition)
9191
let syntaxPath = IndexPath(index: Google_Protobuf_FileDescriptorProto.FieldNumbers.syntax)
9292
var commentLocation: Google_Protobuf_SourceCodeInfo.Location? = nil
93-
if !self.generatorOptions.experimentalStripNonfunctionalCodegen {
93+
if self.generatorOptions.experimentalStripNonfunctionalCodegen {
9494
// Comments are inherently non-functional, and may change subtly on
9595
// transformations.
9696
} else if let location = fileDescriptor.sourceCodeInfoLocation(path: editionPath) {

0 commit comments

Comments
 (0)