From 01b75eb567796735613358e4593250d25bef57e8 Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Sun, 27 Dec 2020 00:16:24 -0500 Subject: [PATCH] Return pointer instead of object --- datastore/skinstore.go | 2 +- datastore/userstore.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datastore/skinstore.go b/datastore/skinstore.go index 316d8d1..0ba0a2a 100644 --- a/datastore/skinstore.go +++ b/datastore/skinstore.go @@ -4,6 +4,6 @@ import "github.com/josephbmanley/OpenSkins-Common/datatypes" type Skinstore interface { Initialize() error - GetSkin(string) (datatypes.Skin, error) + GetSkin(string) (*datatypes.Skin, error) AddSkin(string, []byte) error } diff --git a/datastore/userstore.go b/datastore/userstore.go index 51e3ceb..a1e3782 100644 --- a/datastore/userstore.go +++ b/datastore/userstore.go @@ -4,6 +4,6 @@ import "github.com/josephbmanley/OpenSkins-Common/datatypes" type Userstore interface { Initialize() error - GetUser(uid string) (datatypes.User, error) + GetUser(uid string) (*datatypes.User, error) SetUser(datatypes.User) error }