mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
curlsshsink: remove redundant else statement
Else statement is redundant when the if block finishes with an return.
This commit is contained in:
parent
8551f74a05
commit
9fb7add179
1 changed files with 9 additions and 10 deletions
|
@ -416,16 +416,15 @@ gst_curl_ssh_sink_set_options_unlocked (GstCurlBaseSink * bcsink)
|
|||
bcsink->error = g_strdup_printf ("failed to set SSH_KEYFUNCTION callback: "
|
||||
"%s", curl_easy_strerror (curl_err));
|
||||
return FALSE;
|
||||
} else {
|
||||
/* SSH_KEYFUNCTION callback successfully installed so go on and
|
||||
* set the '*clientp' parameter as well */
|
||||
if ((curl_err =
|
||||
curl_easy_setopt (bcsink->curl, CURLOPT_SSH_KEYDATA,
|
||||
sink)) != CURLE_OK) {
|
||||
bcsink->error = g_strdup_printf ("failed to set CURLOPT_SSH_KEYDATA: %s",
|
||||
curl_easy_strerror (curl_err));
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
/* SSH_KEYFUNCTION callback successfully installed so go on and
|
||||
* set the '*clientp' parameter as well */
|
||||
if ((curl_err =
|
||||
curl_easy_setopt (bcsink->curl, CURLOPT_SSH_KEYDATA,
|
||||
sink)) != CURLE_OK) {
|
||||
bcsink->error = g_strdup_printf ("failed to set CURLOPT_SSH_KEYDATA: %s",
|
||||
curl_easy_strerror (curl_err));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue