Skip to content

Commit c613ac3

Browse files
committed
chore(lint): golangci-lint: fix various
1 parent 04e2ba4 commit c613ac3

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

openapi2/spec_more.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,31 @@ type SpecMore struct {
1111
Spec *Spec
1212
}
1313

14-
func (m *SpecMore) Meta() *spectrum.SpecMeta {
14+
func (sm *SpecMore) Meta() *spectrum.SpecMeta {
1515
meta := spectrum.NewSpecMeta()
16-
if m.Spec == nil {
16+
if sm.Spec == nil {
1717
return meta
1818
}
19-
meta.Names = m.Names()
19+
meta.Names = sm.Names()
2020
meta.Inflate()
2121
return meta
2222
}
2323

24-
func (more *SpecMore) Names() spectrum.SpecMetaNames {
24+
func (sm *SpecMore) Names() spectrum.SpecMetaNames {
2525
out := spectrum.SpecMetaNames{
26-
Endpoints: more.Endpoints(),
27-
Models: more.ModelNames(),
28-
Paths: more.PathNames(),
26+
Endpoints: sm.Endpoints(),
27+
Models: sm.ModelNames(),
28+
Paths: sm.PathNames(),
2929
}
3030
return out
3131
}
3232

33-
func (more *SpecMore) Endpoints() []string {
33+
func (sm *SpecMore) Endpoints() []string {
3434
var out []string
35-
if more.Spec == nil {
35+
if sm.Spec == nil {
3636
return out
3737
}
38-
for k, pathItem := range more.Spec.Paths {
38+
for k, pathItem := range sm.Spec.Paths {
3939
if pathItem.Delete != nil {
4040
out = append(out, spectrum.EndpointString(http.MethodDelete, k))
4141
}
@@ -62,18 +62,18 @@ func (more *SpecMore) Endpoints() []string {
6262
return out
6363
}
6464

65-
func (more *SpecMore) ModelNames() []string {
65+
func (sm *SpecMore) ModelNames() []string {
6666
var out []string
67-
for k := range more.Spec.Definitions {
67+
for k := range sm.Spec.Definitions {
6868
out = append(out, k)
6969
}
7070
sort.Strings(out)
7171
return out
7272
}
7373

74-
func (more *SpecMore) PathNames() []string {
74+
func (sm *SpecMore) PathNames() []string {
7575
var out []string
76-
for k := range more.Spec.Paths {
76+
for k := range sm.Spec.Paths {
7777
out = append(out, k)
7878
}
7979
sort.Strings(out)

0 commit comments

Comments
 (0)