diff options
author | Valery Piashchynski <[email protected]> | 2021-07-24 12:52:54 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-07-24 12:52:54 +0300 |
commit | 685d7b4e88c10643d8ca6f619373544c1ceeac9b (patch) | |
tree | a73feba7c4a3c6fb7e186439f71400a628bc1305 /utils | |
parent | c25616b937d120d16d74cfb2d12d9133afb54330 (diff) |
Remove unused toPtr conversions
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/pointers.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/utils/pointers.go b/utils/pointers.go deleted file mode 100644 index 9c192279..00000000 --- a/utils/pointers.go +++ /dev/null @@ -1,15 +0,0 @@ -package utils - -func AsUint64Ptr(val uint64) *uint64 { - if val == 0 { - val = 10 - } - return &val -} - -func AsStringPtr(val string) *string { - if val == "" { - return nil - } - return &val -} |