fixed up return types

This commit is contained in:
Chris Heckathorne
2015-05-08 15:43:25 -04:00
parent 19d00f60a0
commit 21b35d1f68
2 changed files with 3 additions and 3 deletions

View File

@@ -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.

View File

@@ -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>