Code Duplication    Length = 6-6 lines in 2 locations

json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php 1 location

@@ 289-294 (lines=6) @@
286
			}
287
			$this->log[$plugin][] = __( 'Plugin deactivated.', 'jetpack' );
288
		}
289
		if ( ! $this->bulk && isset( $error ) ) {
290
			if ( $permission_error ) {
291
				return new WP_Error( 'unauthorized_error', $error, 403 );
292
			}
293
294
			return new WP_Error( 'deactivation_error', $error );
295
		}
296
	}
297

json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-v1-2-endpoint.php 1 location

@@ 183-188 (lines=6) @@
180
			}
181
			$this->log[$plugin][] = __( 'Plugin deactivated.', 'jetpack' );
182
		}
183
		if ( ! $this->bulk && isset( $error ) ) {
184
			if ( $permission_error ) {
185
				return new WP_Error( 'unauthorized_error', $error, 403 );
186
			}
187
188
			return new WP_Error( 'deactivation_error', $error );
189
		}
190
	}
191
}