@@ -26,14 +26,14 @@ type (
2626// MapAnnotationsInPath scanIn is relevant from initiator calling it.
2727//
2828// It accepts the path in which to scan for annotations within Go files.
29- func (o * OAS ) MapAnnotationsInPath (scanIn string , conf ... configAnnotation ) error {
29+ func (oas * OAS ) MapAnnotationsInPath (scanIn string , conf ... configAnnotation ) error {
3030 filesInPath , err := scanForChangesInPath (scanIn , getWDFn (conf ), walkFilepath )
3131 if err != nil {
3232 return fmt .Errorf (" :%w" , err )
3333 }
3434
3535 for _ , file := range filesInPath {
36- err = o .mapDocAnnotations (file )
36+ err = oas .mapDocAnnotations (file )
3737 if err != nil {
3838 return fmt .Errorf (" :%w" , err )
3939 }
@@ -103,8 +103,8 @@ func walkFilepath(pathToTraverse string, walker walkerFn) ([]string, error) {
103103 return files , nil
104104}
105105
106- func (o * OAS ) mapDocAnnotations (path string ) error {
107- if o == nil {
106+ func (oas * OAS ) mapDocAnnotations (path string ) error {
107+ if oas == nil {
108108 return errors .New ("pointer to OASHandlers can not be nil" )
109109 }
110110
@@ -119,7 +119,7 @@ func (o *OAS) mapDocAnnotations(path string) error {
119119 line := 1
120120
121121 for scanner .Scan () {
122- mapIfLineContainsOASTag (scanner .Text (), o )
122+ mapIfLineContainsOASTag (scanner .Text (), oas )
123123 line ++
124124 }
125125
0 commit comments