@@ -1,15 +1,13 @@
package bug
import (
- "encoding/json"
"errors"
"github.com/MichaelMure/git-bug/repository"
- "github.com/MichaelMure/git-bug/util"
)
type Person struct {
- Name string `json:"name"`- Email string `json:"email"`
+ Name string
+ Email string
}
// GetUser will query the repository for user detail and build the corresponding Person
@@ -32,16 +30,3 @@ func GetUser(repo repository.Repo) (Person, error) {
return Person{Name: name, Email: email}, nil
}
--// Store will convert the Person to JSON and store it in the internal git datastore-// Return the git hash handle of the data-func (person *Person) Store(repo repository.Repo) (util.Hash, error) {-- data, err := json.Marshal(person)-- if err != nil {- return "", err- }-- return repo.StoreData(data)-}