mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-20 14:15:12 +00:00
fixed up return types
This commit is contained in:
@@ -92,7 +92,7 @@ namespace Octokit.Reactive
|
||||
/// <returns>
|
||||
/// A collection of <see cref="RepositoryContent"/> representing the content at the specified path
|
||||
/// </returns>
|
||||
IObservable<IReadOnlyList<RepositoryContent>> GetContents(string owner, string name, string path, string reference);
|
||||
IObservable<RepositoryContent> GetContents(string owner, string name, string path, string reference);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a commit that creates a new file in a repository.
|
||||
|
||||
@@ -138,14 +138,14 @@ namespace Octokit.Reactive
|
||||
/// <returns>
|
||||
/// A collection of <see cref="RepositoryContent"/> representing the content at the specified path
|
||||
/// </returns>
|
||||
public IObservable<IReadOnlyList<RepositoryContent>> GetContents(string owner, string name, string path, string reference)
|
||||
public IObservable<RepositoryContent> GetContents(string owner, string name, string path, string reference)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
Ensure.ArgumentNotNullOrEmptyString(path, "path");
|
||||
Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
|
||||
|
||||
return _client.Repository.Content.GetContents(owner, name, path, reference).ToObservable();
|
||||
return _client.Connection.GetAndFlattenAllPages<RepositoryContent>(ApiUrls.RepositoryContent(owner, name, path, reference));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user