Skip to content

Commit

Permalink
Code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mwiewior committed Jun 16, 2022
1 parent 93a0989 commit 5344760
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion pkg/datasources/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package datasources
import (
"database/sql"
"fmt"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers"
"log"
"strings"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/helpers/list_to_string_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func IpListToSnowflakeString(ips []string) string {
}

// ListContentToString strips list elements of double quotes or brackets
func ListContentToString( listString string) string {
func ListContentToString(listString string) string {
re := regexp.MustCompile(`[\"\[\]]`)
return re.ReplaceAllString(listString, "")
}
}
2 changes: 1 addition & 1 deletion pkg/resources/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,4 @@ func UpdateUser(d *schema.ResourceData, meta interface{}) error {

func DeleteUser(d *schema.ResourceData, meta interface{}) error {
return DeleteResource("user", snowflake.User)(d, meta)
}
}
3 changes: 2 additions & 1 deletion pkg/snowflake/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package snowflake
import (
"database/sql"
"fmt"
"log"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers"
"github.com/jmoiron/sqlx"
"github.com/pkg/errors"
"log"
)

func User(name string) *Builder {
Expand Down

0 comments on commit 5344760

Please sign in to comment.