From 666e09bfe7e1ef4a0310c0f78ad2443dc052529a Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 13 Aug 2024 11:10:12 +0200 Subject: Move case downwards --- cmd/mfmt/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/mfmt') diff --git a/cmd/mfmt/main.go b/cmd/mfmt/main.go index 57d9e8f..c4e2277 100644 --- a/cmd/mfmt/main.go +++ b/cmd/mfmt/main.go @@ -72,8 +72,6 @@ func mfmt(file string, r io.Reader, w io.Writer) { switch { case len(line) == 0, line[0] == '#': fmt.Fprintln(w, line) - case reMintageYear.MatchString(line): - fmtMintageYear(line, w) case reMintageRowS.MatchString(line): switch bufsz { case len(buf): @@ -93,6 +91,8 @@ func mfmt(file string, r io.Reader, w io.Writer) { var ns [3]int setLongestNum(ns[:], line) fmtMintageRow(line, ns[:], w) + case reMintageYear.MatchString(line): + fmtMintageYear(line, w) default: warn(fmt.Sprintf("%s:%d: potential syntax error", file, linenr)) fmt.Fprintln(w, line) -- cgit v1.2.3