Skip to content

Commit

Permalink
Fixed check
Browse files Browse the repository at this point in the history
  • Loading branch information
gridanjbf committed Jul 2, 2024
1 parent 753e7d1 commit c98ae3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sharepoint/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def list_documents_page(url)
def download(file_path: nil, site_path: nil, link_credentials: {})
meta = get_document(file_path, site_path)
meta_path = meta.url || meta.path
if meta_path
if meta_path.nil?
url = computed_web_api_url(site_path)
server_relative_url = odata_escape_single_quote "#{site_path}#{file_path}"
download_url "#{url}GetFileByServerRelativeUrl('#{server_relative_url}')/$value"
Expand Down

0 comments on commit c98ae3d

Please sign in to comment.