2. When this is done from necessity, it does not affect the liability of an insurer on the goods. 1 Marsh. Ins. 166; Abbott on Shipp. 240. But when the master tranships goods without necessity, he is answerable for the loss of them by capture by public enemies. 1 Gallis. R. 443.