diff options
author | frank <frankthetank@users.noreply.github.com> | 2017-05-01 20:51:16 -0400 |
---|---|---|
committer | frank <frankthetank@users.noreply.github.com> | 2017-05-01 20:51:16 -0400 |
commit | 598c1d972afd7b5633de7d4eaf52d68750bd61a2 (patch) | |
tree | b4d4fd6bc575554729d655c0da8af3eb7cd7da6e /src/etc/inc/dyndns.class | |
parent | e350558a62c82420e0c1ce5160711d79b8e2e013 (diff) | |
download | pfsense-598c1d972afd7b5633de7d4eaf52d68750bd61a2.zip pfsense-598c1d972afd7b5633de7d4eaf52d68750bd61a2.tar.gz |
Aggregated case statements to avoid duplication.
Diffstat (limited to 'src/etc/inc/dyndns.class')
-rw-r--r-- | src/etc/inc/dyndns.class | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/etc/inc/dyndns.class b/src/etc/inc/dyndns.class index 318e2fb..46c3ac7 100644 --- a/src/etc/inc/dyndns.class +++ b/src/etc/inc/dyndns.class @@ -1781,20 +1781,14 @@ $successful_update = true; break; case 'no_record': - $status = $status_intro . $error_str . gettext("No record exists."); - break; - case 'no_type': - $status = $status_intro . $error_str . gettext("No type exists."); - break; - case 'no_value': - $status = $status_intro . $error_str . gettext("No value exists."); - break; case 'no_such_record ': $status = $status_intro . $error_str . gettext("No record exists."); break; + case 'no_type': case 'no_such_type ': $status = $status_intro . $error_str . gettext("No type exists."); break; + case 'no_value': case 'no_such_value ': $status = $status_intro . $error_str . gettext("No value exists."); break; |