Skip to content

Commit

Permalink
Fix accidentally inverted if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
mkruskal-google authored and thomasvl committed Nov 20, 2024
1 parent 90b174e commit 7a3fbf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/protoc-gen-swift/FileGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class FileGenerator {
let editionPath = IndexPath(index: Google_Protobuf_FileDescriptorProto.FieldNumbers.edition)
let syntaxPath = IndexPath(index: Google_Protobuf_FileDescriptorProto.FieldNumbers.syntax)
var commentLocation: Google_Protobuf_SourceCodeInfo.Location? = nil
if !self.generatorOptions.experimentalStripNonfunctionalCodegen {
if self.generatorOptions.experimentalStripNonfunctionalCodegen {
// Comments are inherently non-functional, and may change subtly on
// transformations.
} else if let location = fileDescriptor.sourceCodeInfoLocation(path: editionPath) {
Expand Down

0 comments on commit 7a3fbf4

Please sign in to comment.