The court shall award or deny the writ according to the law and facts of the case, with or without costs.
Code 1950, § 8-709; 1977, c. 617.