Code Duplication    Length = 4-4 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 337-340 (lines=4) @@
334
335
		if ( wc_ship_to_billing_address_only() ) {
336
337
			if ( isset( $_POST['country'] ) ) {
338
				WC()->customer->set_shipping_country( $_POST['country'] );
339
				WC()->customer->calculated_shipping( true );
340
			}
341
342
			if ( isset( $_POST['state'] ) ) {
343
				WC()->customer->set_shipping_state( $_POST['state'] );
@@ 363-366 (lines=4) @@
360
			}
361
		} else {
362
363
			if ( isset( $_POST['s_country'] ) ) {
364
				WC()->customer->set_shipping_country( $_POST['s_country'] );
365
				WC()->customer->calculated_shipping( true );
366
			}
367
368
			if ( isset( $_POST['s_state'] ) ) {
369
				WC()->customer->set_shipping_state( $_POST['s_state'] );