mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-20 09:06:45 +00:00
GODT-35: Finish all details and make tests pass
This commit is contained in:
@ -40,7 +40,7 @@ type fakeCall struct {
|
||||
request []byte
|
||||
}
|
||||
|
||||
func (ctl *Controller) recordCall(method method, path string, req interface{}) error {
|
||||
func (ctl *Controller) checkAndRecordCall(method method, path string, req interface{}) error {
|
||||
ctl.lock.Lock()
|
||||
defer ctl.lock.Unlock()
|
||||
|
||||
@ -50,7 +50,7 @@ func (ctl *Controller) recordCall(method method, path string, req interface{}) e
|
||||
var err error
|
||||
|
||||
if request, err = json.Marshal(req); err != nil {
|
||||
return err
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user