Skip to content

Commit 51d4395

Browse files
committed
Fix errors
1 parent 7bd596e commit 51d4395

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

client/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func Init(path, host, proxy string) {
3535
c := &Client{Jar: jar, path: path, host: host, proxy: proxy, client: nil}
3636
if err := c.load(); err != nil {
3737
fmt.Println(err.Error())
38-
fmt.Println("Create a new session in %v", path)
38+
fmt.Printf("Create a new session in %v\n", path)
3939
}
4040
Proxy := http.ProxyFromEnvironment
4141
if len(proxy) > 0 {
@@ -79,7 +79,7 @@ func (c *Client) save() (err error) {
7979
err = os.WriteFile(c.path, data, 0644)
8080
}
8181
if err != nil {
82-
fmt.Println("Cannot save session to %v\n%v", c.path, err.Error())
82+
fmt.Printf("Cannot save session to %v\n%v\n", c.path, err.Error())
8383
}
8484
return
8585
}

client/login.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func (c *Client) Login() (err error) {
143143
c.Handle = handle
144144
c.Jar = jar
145145
fmt.Println("Succeed!!")
146-
fmt.Println("Welcome %v~", handle)
146+
fmt.Printf("Welcome %v~\n", handle)
147147
return c.save()
148148
}
149149

@@ -206,7 +206,7 @@ func (c *Client) DecryptPassword() (string, error) {
206206
// ConfigLogin configure handle and password
207207
func (c *Client) ConfigLogin() (err error) {
208208
if c.Handle != "" {
209-
fmt.Println("Current user: %v", c.Handle)
209+
fmt.Printf("Current user: %v\n", c.Handle)
210210
}
211211
fmt.Println("Configure handle/email and password")
212212
fmt.Println("Note: The password is invisible, just type it correctly.")

client/watch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func parseSubmission(body []byte) (ret Submission, err error) {
7777
status = colReg.ReplaceAllString(status, "")
7878
status = tagReg.ReplaceAllString(status, "")
7979
status = strings.TrimSpace(status)
80-
// empty status usually means that the submission is in queue
80+
// empty status usually means that the submission is in queue
8181
if status == "" {
8282
status = Running
8383
}

0 commit comments

Comments
 (0)