Skip to content

Commit

Permalink
refactor: reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Sep 7, 2023
1 parent 5c1a6a3 commit a1cb505
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xfr.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ func RecAXFR(label, server string, out io.Writer) []dns.RR {
queried = make(map[string]bool)
all = make([]dns.RR, 0)

dir := fmt.Sprintf("%s_%s_recaxfr", strings.TrimPrefix(label, "."), strings.ReplaceAll(time.Now().Format(time.UnixDate), " ", "-"))
dir := fmt.Sprintf("%s_%s_recaxfr",
strings.TrimPrefix(label, "."),
strings.ReplaceAll(time.Now().Format(time.UnixDate), " ", "-"),
)

// Create recursive AXFR directory if it doesn't exist
if _, err := os.Stat(dir); os.IsNotExist(err) {
Expand Down

0 comments on commit a1cb505

Please sign in to comment.