Completed
Pull Request — develop (#1742)
by
unknown
19:12
created
includes/class-gravityview-entry-approval-link.php 1 patch
Braces   +2 added lines, -6 removed lines patch added patch discarded remove patch
@@ -325,9 +325,7 @@  discard block
 block discarded – undo
325 325
 
326 326
 			if ( 'success' === $result ) {
327 327
 				GVCommon::generate_notice( __( 'Entry approval updated!', 'gravityview' ), 'gv-success' );
328
-			}
329
-
330
-			elseif ( 'error' === $result ) {
328
+			} elseif ( 'error' === $result ) {
331 329
 				GVCommon::generate_notice( __( 'Error updating approval.', 'gravityview' ), 'gv-error' );
332 330
 			}
333 331
 		}
@@ -499,9 +497,7 @@  discard block
 block discarded – undo
499 497
 
500 498
 			$result = new WP_Error( 'Missing Cap: gravityview_moderate_entries', __( 'You do not have permission to edit this entry.', 'gravityview') );
501 499
 
502
-		}
503
-
504
-		else {
500
+		} else {
505 501
 
506 502
 			$result = GravityView_Entry_Approval::update_approved( $entry_id, $approval_status, $form_id );
507 503
 
Please login to merge, or discard this patch.