Replace p with r for params reader (lint issue)

This commit is contained in:
Quentin McGaw
2020-06-12 17:07:32 +00:00
parent 1a06d01ae2
commit a3d75f3d8b
12 changed files with 129 additions and 129 deletions

View File

@@ -9,7 +9,7 @@ import (
// GetSurfsharkRegion obtains the region for the Surfshark server from the
// environment variable REGION
func (p *reader) GetSurfsharkRegion() (region models.SurfsharkRegion, err error) {
s, err := p.envParams.GetValueIfInside("REGION", constants.SurfsharkRegionChoices())
func (r *reader) GetSurfsharkRegion() (region models.SurfsharkRegion, err error) {
s, err := r.envParams.GetValueIfInside("REGION", constants.SurfsharkRegionChoices())
return models.SurfsharkRegion(strings.ToLower(s)), err
}