chore(updater): tiny code changes

- Remove unneeded ctx error check in cyberghost updating code
- Move global scope caser to function local scope
- Return error if updating a single provider in `UpdateServers`
- Add comments on different error paths in `UpdateServers`
This commit is contained in:
Quentin McGaw
2022-06-03 13:01:29 +00:00
parent 87c6ebe1c5
commit 0549326dfb
3 changed files with 17 additions and 13 deletions

View File

@@ -34,9 +34,5 @@ func resolveHosts(ctx context.Context, presolver resolver.Parallel,
return nil, err
}
if err := ctx.Err(); err != nil {
return nil, err
}
return hostToIPs, nil
}