                         (goto-char (point-max))
                         (insert ?\n)))
 
-                  (if (= 0 (shell-command-on-region (point-min) (point-max)
+                  (if (zerop (shell-command-on-region (point-min) (point-max)
                                                     (concat "gofmt" flag)
                                                     patchbuf nil errbuf))
                       ;; gofmt succeeded: replace buffer or apply patch hunks.

        (goto-char point)
      (setq indent (go-indentation-at-point))
      (if (looking-at "[[:word:]]+:\\([[:space:]]*/.+\\)?$\\|case .+:\\|default:")
          (setq indent (- indent tab-width)))
      (setq shift-amt (- indent (current-column)))
      (if (zerop shift-amt)
          nil

    (setq pos (point))
    (beginning-of-line)
    (if (or (looking-at "^[[:word:]]+:") (looking-at "^[[:space:]]*\\(case .+\\|default\\):"))
        (end-of-line 0)
      (goto-char pos))
    (if (/= start-pos (point))
        (go--backward-irrelevant stop-at-string))
