removed the else condition in DeskClient.setMock because it's not needed and can not be tested.