Author: ivan Date: Mon Oct 21 14:09:18 2013 New Revision: 1534173 URL: http://svn.apache.org/r1534173 Log: Follow-up to r1526439.
* subversion/libsvn_ra_serf/commit.c (add_file): Remove redundant check for 'sline.code != 200'. Modified: subversion/trunk/subversion/libsvn_ra_serf/commit.c Modified: subversion/trunk/subversion/libsvn_ra_serf/commit.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/commit.c?rev=1534173&r1=1534172&r2=1534173&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_ra_serf/commit.c (original) +++ subversion/trunk/subversion/libsvn_ra_serf/commit.c Mon Oct 21 14:09:18 2013 @@ -1933,18 +1933,11 @@ add_file(const char *path, if (handler->sline.code != 404) { - if (handler->sline.code != 200) - { - svn_error_t *err; - - err = svn_ra_serf__error_on_status(handler->sline, - handler->path, - handler->location); + SVN_ERR(svn_ra_serf__error_on_status(handler->sline, + handler->path, + handler->location)); - SVN_ERR(err); - } - - return svn_error_createf(SVN_ERR_FS_ALREADY_EXISTS, NULL, + return svn_error_createf(SVN_ERR_FS_ALREADY_EXISTS, NULL, _("File '%s' already exists"), path); } }