Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Trey Ivy committed Oct 10, 2024
1 parent 3d49e0b commit a657401
Show file tree
Hide file tree
Showing 18 changed files with 2,151 additions and 2,369 deletions.
21 changes: 10 additions & 11 deletions internal/graphql/custom.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

160 changes: 81 additions & 79 deletions internal/graphql/ent.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion internal/graphql/helpers/resolver.helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var (
errStatusNotFound = errors.New("status not found")
)

// Slice Helpers
// StringSliceArrayToPointerArray takes an array of strings and returns an array of string pointers
func StringSliceArrayToPointerArray(strings []string) []*string {
result := make([]*string, len(strings))
for i, str := range strings {
Expand All @@ -32,10 +32,12 @@ func StringSliceArrayToPointerArray(strings []string) []*string {
return result
}

// GetFloatPointer returns a pointer to a float
func GetFloatPointer(f *float64) *float64 {
return f
}

// GetInt64Pointer returns a pointer to an int64
func GetInt64Pointer(i *int64) *int64 {
return i
}
Expand Down
Binary file modified internal/graphql/testdata/snapshot.db
Binary file not shown.
Loading

0 comments on commit a657401

Please sign in to comment.