summaryrefslogtreecommitdiffhomepage
path: root/pkg/refs/refs_state_autogen.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/refs/refs_state_autogen.go')
-rw-r--r--pkg/refs/refs_state_autogen.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/refs/refs_state_autogen.go b/pkg/refs/refs_state_autogen.go
index 53d22d315..86a102119 100644
--- a/pkg/refs/refs_state_autogen.go
+++ b/pkg/refs/refs_state_autogen.go
@@ -22,7 +22,8 @@ func (w *WeakRef) beforeSave() {}
// +checklocksignore
func (w *WeakRef) StateSave(stateSinkObject state.Sink) {
w.beforeSave()
- var objValue savedReference = w.saveObj()
+ var objValue savedReference
+ objValue = w.saveObj()
stateSinkObject.SaveValue(0, objValue)
stateSinkObject.Save(1, &w.user)
}