Skip to content

Commit

Permalink
#17 Adding unit tests and code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
hughdevore committed Aug 15, 2017
1 parent c08d852 commit 6110808
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Type/MediaItem/Mutation/MediaItemDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ public static function mutate( \WP_Post_Type $post_type_object ) {
if ( false === $deleted ) {
throw new \Exception( __( 'Sorry, the mediaItem failed to delete', 'wp-graphql' ) );
}



/**
* If the post was moved to the trash, spoof the object's status before returning it
*/
Expand Down

0 comments on commit 6110808

Please sign in to comment.