From d2d8cebbc9b455120e6f8dcaf2e6fabd88107e44 Mon Sep 17 00:00:00 2001 From: Gungun974 Date: Wed, 18 Oct 2023 01:45:12 +0400 Subject: [PATCH] Remove unused variables --- generator/generator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/generator.go b/generator/generator.go index f7a30302..ba7247f4 100644 --- a/generator/generator.go +++ b/generator/generator.go @@ -1116,7 +1116,7 @@ func (g *generator) writeSpreadAttributes(indentLevel int, elementName string, a return err } // attribute name - if r, err = g.w.Write(var_n); err != nil { + if _, err = g.w.Write(var_n); err != nil { return err } // )) @@ -1143,7 +1143,7 @@ func (g *generator) writeSpreadAttributes(indentLevel int, elementName string, a return err } // attribute value - if r, err = g.w.Write(var_v); err != nil { + if _, err = g.w.Write(var_v); err != nil { return err } // ))