Skip to content

Commit 37167ab

Browse files
committed
chore(api): fix linting issues
1 parent 9ec1c99 commit 37167ab

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

api/v3/server/routes.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,19 +251,19 @@ func (s *Server) GetPlan(w http.ResponseWriter, r *http.Request, planId api.ULID
251251
}
252252

253253
func (s *Server) UpdatePlan(w http.ResponseWriter, r *http.Request, planId api.ULID) {
254-
s.plansHandler.UpdatePlan().With(string(planId)).ServeHTTP(w, r)
254+
s.plansHandler.UpdatePlan().With(planId).ServeHTTP(w, r)
255255
}
256256

257257
func (s *Server) DeletePlan(w http.ResponseWriter, r *http.Request, planId api.ULID) {
258-
s.plansHandler.DeletePlan().With(string(planId)).ServeHTTP(w, r)
258+
s.plansHandler.DeletePlan().With(planId).ServeHTTP(w, r)
259259
}
260260

261261
func (s *Server) ArchivePlan(w http.ResponseWriter, r *http.Request, planId api.ULID) {
262-
s.plansHandler.ArchivePlan().With(string(planId)).ServeHTTP(w, r)
262+
s.plansHandler.ArchivePlan().With(planId).ServeHTTP(w, r)
263263
}
264264

265265
func (s *Server) PublishPlan(w http.ResponseWriter, r *http.Request, planId api.ULID) {
266-
s.plansHandler.PublishPlan().With(string(planId)).ServeHTTP(w, r)
266+
s.plansHandler.PublishPlan().With(planId).ServeHTTP(w, r)
267267
}
268268

269269
// Addons

0 commit comments

Comments
 (0)