diff options
| -rw-r--r-- | findFilename.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/findFilename.go b/findFilename.go index c605dcb..1cfbe0d 100644 --- a/findFilename.go +++ b/findFilename.go @@ -3,7 +3,6 @@ package config import ( "fmt" - "go.wit.com/log" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/reflect/protoreflect" ) @@ -29,10 +28,10 @@ func GetFilename(pb proto.Message) (string, error) { if fieldDescriptor == nil { fieldName = protoreflect.Name("filename") fieldDescriptor = descriptor.Fields().ByName(fieldName) - if fieldDescriptor != nil { - log.Info("") - panic(".proto file must have 'Filename', not 'filename'") - } + // if fieldDescriptor == nil { + // log.Info("") + // panic(".proto file: try 'Filename', not 'filename'? or maybe nomutex if pb.Marshal() fails") + // } } // 4. Check if the field was found. If not, return false. |
