From f34089dc7e18c8be1163cce52cd354794d078a37 Mon Sep 17 00:00:00 2001 From: Wedge Date: Tue, 30 Oct 2018 11:09:36 +0300 Subject: [PATCH] Change begin location in increase release tag --- app/models/project.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/project.rb b/app/models/project.rb index 04fa457d2..f7e6df8dd 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -221,10 +221,10 @@ class Project < ActiveRecord::Base return false end if file - decoded_content = Base64.decode64(file.content) - new_content = Project.replace_release_tag decoded_content - return if new_content == decoded_content begin + decoded_content = Base64.decode64(file.content) + new_content = Project.replace_release_tag decoded_content + return if new_content == decoded_content Github_blobs_api.update_contents github_get_organization + '/' + name, name + '.spec',\ message, file.sha, new_content, branch: project_version rescue => e