From ef3fa92de34e4af4cb7bd0aa7e003d9afedbd993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sun, 13 Oct 2024 21:03:53 +0900 Subject: [PATCH] fix(emozi): login --- plugin/emozi/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/emozi/main.go b/plugin/emozi/main.go index 0f158f89b1..8cf79fb758 100644 --- a/plugin/emozi/main.go +++ b/plugin/emozi/main.go @@ -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) } } @@ -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) } }