Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 183-185 (lines=3) @@
180
			$this->log[ $plugin ][] = $upgrader->skin->get_upgrade_messages();
181
		}
182
183
		if ( ! $this->bulk && ! $result && $update_attempted ) {
184
			return new WP_Error( 'update_fail', __( 'There was an error updating your plugin', 'jetpack' ), 400 );
185
		}
186
187
		return $this->default_action();
188
	}

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

@@ 60-62 (lines=3) @@
57
			$this->log[ $theme ][] = $upgrader->skin->get_upgrade_messages();
58
		}
59
60
		if ( ! $this->bulk && ! $result ) {
61
			return new WP_Error( 'update_fail', __( 'There was an error updating your theme', 'jetpack' ), 400 );
62
		}
63
64
		return true;
65
	}