Skip to content

Commit

Permalink
add proper error check
Browse files Browse the repository at this point in the history
  • Loading branch information
pfandzelter committed Jan 25, 2023
1 parent db14910 commit 53b70e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bibclean.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"io"
"os"
"path/filepath"
"sort"
"strings"

"github.com/pfandzelter/bibclean/pkg/bbl"
Expand Down Expand Up @@ -177,6 +178,9 @@ func main() {
i++
}

// sort types alphabetically
sort.Strings(types)

elements, err := bibtex.Parse(contents, shortenBooktitle, shortenAll, defaultElements, additional)

check(err)
Expand Down

0 comments on commit 53b70e2

Please sign in to comment.