Skip to content

Commit

Permalink
chore: fix code styles
Browse files Browse the repository at this point in the history
Signed-off-by: Rintaro Okamura <[email protected]>
  • Loading branch information
rinx committed Sep 24, 2024
1 parent fc89c4a commit f7df1dc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions dap/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (s *session) handler(ctx context.Context) error {
return nil
}

func (s *session) dispatch(ctx context.Context, msg godap.RequestMessage) {
func (s *session) dispatch(_ context.Context, msg godap.RequestMessage) {
var err error

switch req := msg.(type) {
Expand Down Expand Up @@ -355,12 +355,16 @@ func (s *session) launchServer() {

go func() {
if isTLS {
s.server.ListenAndServeTLS(
if err := s.server.ListenAndServeTLS(
s.config.CertFile,
s.config.KeyFile,
)
); err != nil {
s.cancel()
}
} else {
s.server.ListenAndServe()
if err := s.server.ListenAndServe(); err != nil {
s.cancel()
}
}
}()

Expand Down

0 comments on commit f7df1dc

Please sign in to comment.