973306b2 by JessonChan

no need defer here

1 parent da8c3c39
...@@ -58,8 +58,8 @@ var settingMutex sync.Mutex ...@@ -58,8 +58,8 @@ var settingMutex sync.Mutex
58 // createDefaultCookie creates a global cookiejar to store cookies. 58 // createDefaultCookie creates a global cookiejar to store cookies.
59 func createDefaultCookie() { 59 func createDefaultCookie() {
60 settingMutex.Lock() 60 settingMutex.Lock()
61 defer settingMutex.Unlock()
62 defaultCookieJar, _ = cookiejar.New(nil) 61 defaultCookieJar, _ = cookiejar.New(nil)
62 settingMutex.Unlock()
63 } 63 }
64 64
65 // Overwrite default settings 65 // Overwrite default settings
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!