aboutsummaryrefslogtreecommitdiff
path: root/internal/utils/utils.go
diff options
context:
space:
mode:
authorishaan <contact@ishaan.cc>2026-07-16 12:33:59 +0530
committerishaan <contact@ishaan.cc>2026-07-16 12:33:59 +0530
commit006e7975455153e32893cb38196d59d20945590e (patch)
tree22d474f8cf15cc948a064dc1d361b0fe1862b7eb /internal/utils/utils.go
parentbd7ece74096c72f521bba97ddac86edcccb451d0 (diff)
add SecureTempFile helper
Diffstat (limited to 'internal/utils/utils.go')
-rw-r--r--internal/utils/utils.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/internal/utils/utils.go b/internal/utils/utils.go
index f620af3..cea00a3 100644
--- a/internal/utils/utils.go
+++ b/internal/utils/utils.go
@@ -66,13 +66,6 @@ func RandomLettersNumbers(n int) []byte {
return b
}
-func SecureTempDir() string {
- if _, err := os.Stat("/dev/shm"); err == nil {
- return "/dev/shm"
- }
- return ""
-}
-
func CheckFileAuthMode(notePath string) (crypt.AuthMode, error) {
data, err := os.ReadFile(notePath)
if err != nil {