Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/CouchDB.Driver/Local/LocalDocuments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public async Task<IList<CouchDocumentInfo>> GetAsync(IReadOnlyCollection<string>

LocalDocumentsResult result = await request
.AppendPathSegments("_local_docs")
.PostJsonAsync(new {keys}, cancellationToken)
.PostJsonAsync(new { keys }, cancellationToken)
.SendRequestAsync()
.ReceiveJson<LocalDocumentsResult>()
.ConfigureAwait(false);
Expand All @@ -67,7 +67,7 @@ public Task<TSource> GetAsync<TSource>(string id, CancellationToken cancellation
{
Check.NotNull(id, nameof(id));
return NewRequest()
.AppendPathSegments(GetLocalId(Uri.EscapeDataString(id)))
.AppendPathSegments(Uri.EscapeDataString(GetLocalId(id)))
.GetJsonAsync<TSource>(cancellationToken)
.SendRequestAsync();
}
Expand All @@ -78,7 +78,7 @@ public Task CreateOrUpdateAsync<TSource>(TSource document, CancellationToken can
{
Check.NotNull(document, nameof(document));
return NewRequest()
.AppendPathSegments(GetLocalId(Uri.EscapeDataString(document.Id)))
.AppendPathSegments(Uri.EscapeDataString(GetLocalId(document.Id)))
.PutJsonAsync(document, cancellationToken)
.SendRequestAsync();
}
Expand All @@ -89,7 +89,7 @@ public Task DeleteAsync<TSource>(TSource document, CancellationToken cancellatio
{
Check.NotNull(document, nameof(document));
return NewRequest()
.AppendPathSegments(GetLocalId(Uri.EscapeDataString(document.Id)))
.AppendPathSegments(Uri.EscapeDataString(GetLocalId(document.Id)))
.DeleteAsync(cancellationToken)
.SendRequestAsync();
}
Expand Down