Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 4940-4941 (lines=2) @@
4937
        $params = (object) $params;
4938
        $object = $this->load_object( $params );
4939
4940
        if ( empty( $object ) )
4941
            return pods_error( sprintf( __( "%s Object not found", 'pods' ), ucwords( $params->type ) ), $this );
4942
4943
        $success = wp_delete_post( $params->id );
4944
@@ 4945-4946 (lines=2) @@
4942
4943
        $success = wp_delete_post( $params->id );
4944
4945
        if ( !$success )
4946
            return pods_error( sprintf( __( "%s Object not deleted", 'pods' ), ucwords( $params->type ) ), $this );
4947
4948
        pods_transient_clear( 'pods_objects_' . $params->type );
4949