diff --git a/cmd/qdiimpl.go b/cmd/qdiimpl.go index 83ab1ca..4cdc23c 100644 --- a/cmd/qdiimpl.go +++ b/cmd/qdiimpl.go @@ -491,7 +491,7 @@ func gen(outputName string, obj types.Object, iface *types.Interface) error { bgroup.Id("msg").Op(":=").Lit("not implemented") bgroup.If(Id("hasCallbacks")). Block( - bgroup.Id("msg").Op("=").Lit("not supported by any callbacks"), + Id("msg").Op("=").Lit("not supported by any callbacks"), ) bgroup.Return(Qual("fmt", "Errorf"). Call(Lit(fmt.Sprintf("[%s] method '%%s' %%s", objName)), diff --git a/sample/complex/myinterface_qdii.go b/sample/complex/myinterface_qdii.go index f8d4039..6625c52 100644 --- a/sample/complex/myinterface_qdii.go +++ b/sample/complex/myinterface_qdii.go @@ -263,7 +263,6 @@ func (d *qdMyInterface[T, X]) methodNotImplemented(qdCtx *QDMyInterfaceContext, if hasCallbacks { msg = "not supported by any callbacks" } - msg = "not supported by any callbacks" return fmt.Errorf("[qdMyInterface] method '%s' %s", qdCtx.MethodName, msg) } diff --git a/sample/datatype/sampledata_qdii.go b/sample/datatype/sampledata_qdii.go index 8e3b1d8..5339794 100644 --- a/sample/datatype/sampledata_qdii.go +++ b/sample/datatype/sampledata_qdii.go @@ -101,7 +101,6 @@ func (d *QDSampleData) methodNotImplemented(qdCtx *QDSampleDataContext, hasCallb if hasCallbacks { msg = "not supported by any callbacks" } - msg = "not supported by any callbacks" return fmt.Errorf("[QDSampleData] method '%s' %s", qdCtx.MethodName, msg) } diff --git a/sample/package/reader_qdii.go b/sample/package/reader_qdii.go index 1b4f94d..138b1b7 100644 --- a/sample/package/reader_qdii.go +++ b/sample/package/reader_qdii.go @@ -97,7 +97,6 @@ func (d *Reader) methodNotImplemented(qdCtx *ReaderContext, hasCallbacks bool) e if hasCallbacks { msg = "not supported by any callbacks" } - msg = "not supported by any callbacks" return fmt.Errorf("[Reader] method '%s' %s", qdCtx.MethodName, msg) }