mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-09-02 07:07:26 -04:00
Rename "cfg" package to "config", always use "cfg" for variable names
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ func GetCurrentDeviceID() (string, error) {
|
||||
// Requires: errorOnFail (set to true to throw an error if the devices directory cannot be read/does not exist)
|
||||
func GenDeviceIDList() ([]fs.DirEntry, error) {
|
||||
// create a slice of all registered devices
|
||||
deviceIDList, err := os.ReadDir(ConfigDir + PathSeparator + "devices")
|
||||
deviceIDList, err := os.ReadDir(CfgDir + PathSeparator + "devices")
|
||||
if err != nil {
|
||||
return nil, errors.New("unable to read devices directory: " + err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user