First one  is for the case when we consider twisting via direct sum of line bundles,  second one  is for more general cases.