Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hcl_helpers and type_conversion #80

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 0 additions & 88 deletions hcl_helpers/convert.go

This file was deleted.

37 changes: 0 additions & 37 deletions hcl_helpers/convert_test.go

This file was deleted.

61 changes: 0 additions & 61 deletions hcl_helpers/hcl_blocks.go

This file was deleted.

64 changes: 0 additions & 64 deletions hcl_helpers/traversal.go

This file was deleted.

4 changes: 2 additions & 2 deletions type_conversion/slice.go → helpers/slice.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package type_conversion
package helpers

import (
"reflect"
Expand All @@ -8,7 +8,7 @@ import (
// AnySliceToTypedSlice determines whether input is []any and if so converts to an array of the underlying type
func AnySliceToTypedSlice(input any) any {
result := input
switch result.(type) {
switch result.(type) { //nolint:gocritic // TODO fix this gocritic lint suggestion
case []any:
val := reflect.ValueOf(result)
if val.Kind() == reflect.Slice {
Expand Down
Loading
Loading