Skip to content

Commit

Permalink
fix: persons-db flag recognizes json extension correctly now
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
  • Loading branch information
leodido committed Dec 18, 2020
1 parent 7957a80 commit 74de55f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (o *Options) Validate() error {
}

if _, err := os.Stat(o.personsFile); err == nil {
if filepath.Ext(o.personsFile) == "json" {
if filepath.Ext(o.personsFile) == ".json" {
o.personsSupport = true
} else {
o.personsSupport = false
Expand Down

0 comments on commit 74de55f

Please sign in to comment.