修复: diff filepath为空报错

This commit is contained in:
yystopf 2022-08-22 10:48:05 +08:00
parent 4b167dacbb
commit 6168256897
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ class Api::V1::Projects::Pulls::Versions::GetDiffService < ApplicationService
access_token: token access_token: token
} }
params.merge!(filepath: filepath) if filepath.present? params.merge!(filepath: filepath) if filepath.present?
params
end end
def load_gitea_data def load_gitea_data