The judgment rendered by the court shall be such as the court deems required by the law as applied to the facts disclosed by the record presented, and shall pronounce what the court deems the correct result of the election involved as shown by the record.

Source: SDC 1939, § 16.1828.