If no legal cause is shown for the imprisonment or restraint or for the continuation thereof, the court must discharge the party from the custody or restraint under which the party is held.
N.D. Cent. Code § 32-22-16
When person restrained must be discharged
Official source: North Dakota Legislative Branch. Reproduced from public-domain North Dakota statutes; confirm against the official source for the current text. Not legal advice.