Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

dry-run shouldn't error out.

This fixes the error when using --dry-run, as nothing really fails, so
don't say it did.
  • Loading branch information...
commit 8fd61f73af0cbd5c636f29062535ed7ff6a28efb 1 parent 97903ba
@gregkh authored
Showing with 4 additions and 6 deletions.
  1. +4 −6 bti.c
View
10 bti.c
@@ -1205,14 +1205,12 @@ static int send_request(struct session *session)
dbg("reply:%s\n", reply);
if (req_url)
free(req_url);
- }
- if (!reply) {
- fprintf(stderr, "Error retrieving from URL (%s)\n", endpoint);
- return -EIO;
- }
+ if (!reply) {
+ fprintf(stderr, "Error retrieving from URL (%s)\n", endpoint);
+ return -EIO;
+ }
- if (!session->dry_run) {
if ((session->action != ACTION_UPDATE) &&
(session->action != ACTION_RETWEET) &&
(session->action != ACTION_DIRECT))
Please sign in to comment.
Something went wrong with that request. Please try again.