Fix warning about unused param
This commit is contained in:
parent
f6bba7c571
commit
709fb4ba85
@ -930,7 +930,7 @@ func validateConfig(config *app.Config, fss []rfs.Filesystem, ffmpeg ffmpeg.FFmp
|
||||
}
|
||||
|
||||
// validateInputAddress checks whether the given input address is valid and is allowed to be used.
|
||||
func validateInputAddress(address, basedir string, ffmpeg ffmpeg.FFmpeg) (string, error) {
|
||||
func validateInputAddress(address, _ string, ffmpeg ffmpeg.FFmpeg) (string, error) {
|
||||
if ok := url.HasScheme(address); ok {
|
||||
if err := url.Validate(address); err != nil {
|
||||
return address, err
|
||||
|
||||
@ -114,13 +114,13 @@ func (g *rewrite) isLocal(u *url.URL) bool {
|
||||
return host == base.Host
|
||||
}
|
||||
|
||||
func (g *rewrite) httpURL(u *url.URL, mode Access, identity iamidentity.Verifier) string {
|
||||
func (g *rewrite) httpURL(u *url.URL, _ Access, identity iamidentity.Verifier) string {
|
||||
u.User = identity.GetServiceBasicAuth()
|
||||
|
||||
return u.String()
|
||||
}
|
||||
|
||||
func (g *rewrite) rtmpURL(u *url.URL, mode Access, identity iamidentity.Verifier) string {
|
||||
func (g *rewrite) rtmpURL(u *url.URL, _ Access, identity iamidentity.Verifier) string {
|
||||
token := identity.GetServiceToken()
|
||||
|
||||
// Remove the existing token from the path
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user