From a4a315ea327378552d50e0adfbe154f0610405a7 Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Mon, 7 Dec 2020 10:29:18 +0800 Subject: [PATCH] FIX bug --- app/services/concerns/protected_branch_params_able.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/concerns/protected_branch_params_able.rb b/app/services/concerns/protected_branch_params_able.rb index aeb62e646..3ab0de0bb 100644 --- a/app/services/concerns/protected_branch_params_able.rb +++ b/app/services/concerns/protected_branch_params_able.rb @@ -208,7 +208,7 @@ module ProtectedBranchParamsAble end def gitea_protected_branch_saved?(protected_branch) - protected_branch[:status] === success + protected_branch[:status] == :success end def gitea_protected_branch_params