Commit 9f070c62 authored by JessonChan's avatar JessonChan Committed by astaxie

no need defer here

parent 738e22e3
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment