Skip to content

Commit

Permalink
Fix to broken logic in SaveDocument() that caused unit test to go red…
Browse files Browse the repository at this point in the history
…. Alex, run the unit tests! :)
  • Loading branch information
gokr committed Dec 1, 2009
1 parent 2bbe608 commit c72aa7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CouchDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ public ICouchDocument SaveDocument(ICouchDocument document)
try
{
if (document.Id == null)
CreateDocument(document);

savedDoc = WriteDocument(document);
savedDoc = CreateDocument(document);
else
savedDoc = WriteDocument(document);
}
catch (CouchConflictException ex)
{
Expand Down

0 comments on commit c72aa7d

Please sign in to comment.