Code Duplication    Length = 4-4 lines in 2 locations

_inc/lib/core-api/class.jetpack-core-api-module-endpoints.php 2 locations

@@ 488-491 (lines=4) @@
485
486
			// If this is a module option and the related module isn't active for any reason, continue with the next one.
487
			if ( 'settings' !== $option_attrs['jp_group'] ) {
488
				if ( ! Jetpack::is_module( $option_attrs['jp_group'] ) ) {
489
					$not_updated[ $option ] = esc_html__( 'The requested Jetpack module was not found.', 'jetpack' );
490
					continue;
491
				}
492
493
				if ( ! Jetpack::is_module_active( $option_attrs['jp_group'] ) ) {
494
					$not_updated[ $option ] = esc_html__( 'The requested Jetpack module is inactive.', 'jetpack' );
@@ 493-496 (lines=4) @@
490
					continue;
491
				}
492
493
				if ( ! Jetpack::is_module_active( $option_attrs['jp_group'] ) ) {
494
					$not_updated[ $option ] = esc_html__( 'The requested Jetpack module is inactive.', 'jetpack' );
495
					continue;
496
				}
497
			}
498
499
			// Properly cast value based on its type defined in endpoint accepted args.