1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-28 20:14:14 +00:00

no need defer here

This commit is contained in:
JessonChan 2015-04-26 02:19:38 +08:00
parent da8c3c3910
commit 973306b28d

View File

@ -58,8 +58,8 @@ var settingMutex sync.Mutex
// createDefaultCookie creates a global cookiejar to store cookies.
func createDefaultCookie() {
settingMutex.Lock()
defer settingMutex.Unlock()
defaultCookieJar, _ = cookiejar.New(nil)
settingMutex.Unlock()
}
// Overwrite default settings