OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fd682f
)
update Restore
author
Chengcheng Zhang
<943420582@qq.com>
Tue, 2 Jul 2019 08:21:32 +0000
(16:21 +0800)
committer
Chengcheng Zhang
<943420582@qq.com>
Tue, 2 Jul 2019 08:21:32 +0000
(16:21 +0800)
account/image.go
patch
|
blob
|
history
diff --git
a/account/image.go
b/account/image.go
index
14ad269
..
4477cb3
100644
(file)
--- a/
account/image.go
+++ b/
account/image.go
@@
-49,8
+49,8
@@
func (m *Manager) Restore(image *Image) error {
}
for _, slice := range image.Slice {
-
existed
, err := m.store.GetAccountByID(slice.Account.ID)
- if err != nil
|| existed != nil
{
+
_
, err := m.store.GetAccountByID(slice.Account.ID)
+ if err != nil {
log.WithFields(log.Fields{
"module": logModule,
"alias": slice.Account.Alias,