Browse Source

Remove debug println's

feature/create-install-pkgs
Tovi Jaeschke-Rogers 3 years ago
parent
commit
12ce07e87e
3 changed files with 1 additions and 6 deletions
  1. +1
    -1
      Client/Database/Init.go
  2. +0
    -2
      Client/Filesystem/CopyFile.go
  3. +0
    -3
      Client/Filesystem/ManageFileBucket.go

+ 1
- 1
Client/Database/Init.go View File

@ -23,7 +23,7 @@ func InitConfigDir() error {
) )
_, e = os.Stat(Variables.ConfigDir) _, e = os.Stat(Variables.ConfigDir)
if os.IsNotExist(e) { if os.IsNotExist(e) {
os.MkdirAll(Variables.ConfigDir, 0644)
return os.MkdirAll(Variables.ConfigDir, 0644)
} }
return e return e
} }


+ 0
- 2
Client/Filesystem/CopyFile.go View File

@ -1,7 +1,6 @@
package Filesystem package Filesystem
import ( import (
"fmt"
"io/fs" "io/fs"
"io/ioutil" "io/ioutil"
"os" "os"
@ -42,7 +41,6 @@ func CopyFile(src, dest string) error {
e = ioutil.WriteFile(dest, input, fileInfo.Mode()) e = ioutil.WriteFile(dest, input, fileInfo.Mode())
if e != nil { if e != nil {
fmt.Println(e)
return e return e
} }


+ 0
- 3
Client/Filesystem/ManageFileBucket.go View File

@ -1,7 +1,6 @@
package Filesystem package Filesystem
import ( import (
"fmt"
"os" "os"
bolt "go.etcd.io/bbolt" bolt "go.etcd.io/bbolt"
@ -21,8 +20,6 @@ func AddFileToBucket(bucket *bolt.Bucket, key, filePath string) error {
return nil return nil
} }
fmt.Println(fileObject)
fileObjectBytes, e = fileObject.ToBytes() fileObjectBytes, e = fileObject.ToBytes()
if e != nil { if e != nil {
return e return e


Loading…
Cancel
Save