Skip to content

Commit

Permalink
Ignore explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
arran4 committed Jan 8, 2024
1 parent 1e96c15 commit cf8d1b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions calendar.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,14 @@ func (calendar *Calendar) Serialize() string {
}

func (calendar *Calendar) SerializeTo(w io.Writer) error {
fmt.Fprint(w, "BEGIN:VCALENDAR", "\r\n")
_, _ = fmt.Fprint(w, "BEGIN:VCALENDAR", "\r\n")
for _, p := range calendar.CalendarProperties {
p.serialize(w)
}
for _, c := range calendar.Components {
c.serialize(w)
}
fmt.Fprint(w, "END:VCALENDAR", "\r\n")
_, _ = fmt.Fprint(w, "END:VCALENDAR", "\r\n")
return nil
}

Expand Down Expand Up @@ -534,7 +534,7 @@ func (cs *CalendarStream) ReadLine() (*ContentLine, error) {
if len(p) == 0 {
c = false
} else if p[0] == ' ' || p[0] == '\t' {
cs.b.Discard(1) // nolint:errcheck
_, _ = cs.b.Discard(1) // nolint:errcheck
} else {
c = false
}
Expand Down

0 comments on commit cf8d1b3

Please sign in to comment.