Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmin1992 committed Jun 12, 2019
1 parent 5df7026 commit 46e583f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/models/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (s *Store) Release() error {
}

func (s *Store) ReleaseByToken(token string) error {
if b, err := s.client.Read(s.LockPath(),false); err != nil {
if b, err := s.client.Read(s.LockPath(), false); err != nil {
return err
} else if b != nil {
if t, err := Decode(b); err != nil {
Expand Down
4 changes: 2 additions & 2 deletions pkg/models/topom.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (t *Topom) Encode() []byte {
func Decode(b []byte) (*Topom, error) {
s := &Topom{}
if err := jsonDecode(s, b); err != nil {
return nil,err
return nil, err
}
return s,nil
return s, nil
}

0 comments on commit 46e583f

Please sign in to comment.