Commit 97f5ba1b authored by Arkadiusz Hiler's avatar Arkadiusz Hiler

views: Remove unused parameter

Not only it was unused but also used for something else than the name
has indicated.
Signed-off-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
parent 216bfcd4
Pipeline #11180 failed with stage
in 3 minutes and 40 seconds
......@@ -126,7 +126,7 @@ def list(request, project_id):
return render(request, 'patchwork/list.html', context)
def _get_patch_or_404(request, msgid):
def _get_patch_or_404(msgid):
patch = Patch.objects.filter(msgid='<' + msgid + '>').first()
if patch is None:
raise Http404("Patch not found")
......@@ -134,5 +134,5 @@ def _get_patch_or_404(request, msgid):
def msgid(request, msgid):
patch = _get_patch_or_404(Patch, msgid)
patch = _get_patch_or_404(msgid)
return redirect(patch)
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