Browse Source

Finalized bug fix in upgrader

Toby Chui 7 months ago
parent
commit
5c223d991d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      mod/update/update.go

+ 1 - 2
mod/update/update.go

@@ -9,7 +9,6 @@ package update
 
 import (
 	"fmt"
-	"io/ioutil"
 	"os"
 	"strconv"
 	"strings"
@@ -92,7 +91,7 @@ func isFirstTimeInitialize(path string) (bool, error) {
 	}
 
 	// Read the directory contents
-	files, err := ioutil.ReadDir(path)
+	files, err := os.ReadDir(path)
 	if err != nil {
 		return false, err
 	}