Skip to content

Commit

Permalink
fix(emozi): login
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Oct 13, 2024
1 parent 50be1bb commit ef3fa92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin/emozi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ func init() {
out, chs, err := usr.Marshal(false, txt)
if err != nil {
if hasaccount {
err = usr.Login()
if err == nil {
err2 := usr.Login()
if err2 == nil {
out, chs, err = usr.Marshal(false, txt)
}
}
Expand Down Expand Up @@ -84,8 +84,8 @@ func init() {
out, err := usr.Unmarshal(false, txt)
if err != nil {
if hasaccount {
err = usr.Login()
if err == nil {
err2 := usr.Login()
if err2 == nil {
out, err = usr.Unmarshal(false, txt)
}
}
Expand Down

0 comments on commit ef3fa92

Please sign in to comment.