Skip to content

Commit

Permalink
refactor: comment unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-ruecker committed Sep 20, 2023
1 parent 9d054f1 commit 888e929
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions internal/services/deprecated/resource_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -885,27 +885,27 @@ func flattenRepositoryHTTPClientAuthentication(auth *repository.HTTPClientAuthen
return []map[string]interface{}{data}
}

func flattenRepositoryHTTPClientConnection(conn *repository.HTTPClientConnection) []map[string]interface{} {
if conn == nil {
return nil
}
data := map[string]interface{}{
"user_agent_suffix": conn.UserAgentSuffix,
}
if conn.EnableCookies != nil {
data["enable_cookies"] = *conn.EnableCookies
}
if conn.Retries != nil {
data["retries"] = *conn.Retries
}
if conn.Timeout != nil {
data["timeout"] = *conn.Timeout
}
if conn.UseTrustStore != nil {
data["use_trust_store"] = *conn.UseTrustStore
}
return []map[string]interface{}{data}
}
// func flattenRepositoryHTTPClientConnection(conn *repository.HTTPClientConnection) []map[string]interface{} {
// if conn == nil {
// return nil
// }
// data := map[string]interface{}{
// "user_agent_suffix": conn.UserAgentSuffix,
// }
// if conn.EnableCookies != nil {
// data["enable_cookies"] = *conn.EnableCookies
// }
// if conn.Retries != nil {
// data["retries"] = *conn.Retries
// }
// if conn.Timeout != nil {
// data["timeout"] = *conn.Timeout
// }
// if conn.UseTrustStore != nil {
// data["use_trust_store"] = *conn.UseTrustStore
// }
// return []map[string]interface{}{data}
// }

func flattenRepositoryMaven(maven *repository.Maven) []map[string]interface{} {
if maven == nil {
Expand Down

0 comments on commit 888e929

Please sign in to comment.