Skip to content

Commit

Permalink
cmd/snappr: Clean up redundant argument checks
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaskin committed Nov 16, 2023
1 parent 57a0915 commit df57851
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cmd/snappr/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ func Main(args []string, stdin io.Reader, stdout, stderr io.Writer) int {
fmt.Fprintf(stdout, " - if using --parse-in, beware of duplicate timestamps at DST transitions (if the offset isn't included whatever you use as the\n")
fmt.Fprintf(stdout, " snapshot name, and your timezone has DST, you may end up with two snapshots for different times with the same name.\n")
fmt.Fprintf(stdout, " - timezones will only affect the exact point at which calendar days/months/years are split\n")
if !*Help {
return 2
}
return 0
}

Expand All @@ -119,11 +116,6 @@ func Main(args []string, stdin io.Reader, stdout, stderr io.Writer) int {
return 2
}

if *In == nil {
fmt.Fprintf(stderr, "snappr: fatal: timezone must not be empty\n")
return 2
}

if *ParseIn == nil {
*ParseIn = *In
}
Expand Down

0 comments on commit df57851

Please sign in to comment.