Fix middleware to stop panicking from bad requests
Fixes #2262 (closed)
This fixes an issue where the cache middleware would panic when the relative path was omitted from a gitalypb.Repository
in an RPC request message. The root cause was that a non-nil value was incorrectly assigned to an interface variable when an error occurred. Now, that interface variable will only be set when there is no error.
Edited by GitLab Release Tools Bot