Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-07 06:11:02 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-07 06:11:02 +0300
commit66664611361dcfcbaf99cd7c6906b99bcb16becd (patch)
tree0b0c6b2266d5e6ea24e996cf7f5cf06ad523d9df /lib/version_check.rb
parent7e89568aa1b1c531aa34860fbd9e77d9e988b9b2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/version_check.rb')
-rw-r--r--lib/version_check.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/version_check.rb b/lib/version_check.rb
index eddcddbeb49..35014f3ddf0 100644
--- a/lib/version_check.rb
+++ b/lib/version_check.rb
@@ -69,17 +69,13 @@ class VersionCheck
case response&.code
when 200
- Gitlab::Json.parse(response.body)
- else
- { error: 'version check failed', status: response&.code }
+ response.body
end
end
def response
with_reactive_cache do |data|
- raise InvalidateReactiveCache if data[:error]
-
- data
+ Gitlab::Json.parse(data) if data
end
end
end