aboutsummaryrefslogtreecommitdiffstats
path: root/bug/person.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-14 23:03:43 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-14 23:03:43 +0200
commit54b41c604bd6814e1bc8131cb1fa291d8aff25d1 (patch)
treefb734ba3af6796ee90a5dc1945885e213a04e950 /bug/person.go
parent13d7b3480b0f555294edf2c52a886321bbd9f5e8 (diff)
downloadgit-bug-54b41c604bd6814e1bc8131cb1fa291d8aff25d1.tar.gz
cleaning
Diffstat (limited to 'bug/person.go')
-rw-r--r--bug/person.go19
1 files changed, 2 insertions, 17 deletions
diff --git a/bug/person.go b/bug/person.go
index 9541dbd8..5c9dcc4c 100644
--- a/bug/person.go
+++ b/bug/person.go
@@ -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)
-}