mirror of
https://github.com/writeas/go-writeas.git
synced 2025-07-27 18:38:40 +00:00
13 lines
169 B
Go
13 lines
169 B
Go
![]() |
package writeas
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func (c *Client) isNotLoggedIn(code int) bool {
|
||
|
if c.token == "" {
|
||
|
return false
|
||
|
}
|
||
|
return code == http.StatusUnauthorized
|
||
|
}
|