No need to check `is_object` if you're using `$post_id` arg and it can be shortened with:

~~~php
if ( wp_is_post_revision( $post_id ) )
	return;

// Performs the action here
~~~