Fix tautological conditions

This commit is contained in:
silverwind
2024-04-27 19:04:00 +02:00
parent 7b8e418da1
commit 52c003acd7
3 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ func createProvider(providerName string, source *Source) (goth.Provider, error)
}
// always set the name if provider is created so we can support multiple setups of 1 provider
if err == nil && provider != nil {
if provider != nil {
provider.SetName(providerName)
}