mirror of
https://github.com/astaxie/beego.git
synced 2024-11-04 21:00:55 +00:00
no need defer here
This commit is contained in:
parent
da8c3c3910
commit
973306b28d
@ -58,8 +58,8 @@ var settingMutex sync.Mutex
|
|||||||
// createDefaultCookie creates a global cookiejar to store cookies.
|
// createDefaultCookie creates a global cookiejar to store cookies.
|
||||||
func createDefaultCookie() {
|
func createDefaultCookie() {
|
||||||
settingMutex.Lock()
|
settingMutex.Lock()
|
||||||
defer settingMutex.Unlock()
|
|
||||||
defaultCookieJar, _ = cookiejar.New(nil)
|
defaultCookieJar, _ = cookiejar.New(nil)
|
||||||
|
settingMutex.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Overwrite default settings
|
// Overwrite default settings
|
||||||
|
Loading…
Reference in New Issue
Block a user