Skip to content

Commit df34f55

Browse files
committed
chore(ts): Remove unnecessary func
1 parent c887fed commit df34f55

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cmd/ts/ts.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@ func run(cmd *cobra.Command, args []string) error {
5454

5555
scanner := bufio.NewScanner(cmd.InOrStdin())
5656
for scanner.Scan() {
57-
_, _ = fmt.Fprintln(cmd.OutOrStdout(), timestamp(format), scanner.Text())
57+
_, _ = fmt.Fprintln(cmd.OutOrStdout(), time.Now().Format(format), scanner.Text())
5858
}
5959
return scanner.Err()
6060
}
61-
62-
func timestamp(format string) string {
63-
return time.Now().Format(format)
64-
}

0 commit comments

Comments
 (0)