mirror of
https://github.com/fosrl/olm.git
synced 2026-02-24 05:46:46 +00:00
@@ -70,12 +70,6 @@ func loadServiceArgs() ([]string, error) {
|
|||||||
return nil, fmt.Errorf("failed to read service args: %v", err)
|
return nil, fmt.Errorf("failed to read service args: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// delete the file after reading
|
|
||||||
err = os.Remove(argsPath)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("failed to delete service args file: %v", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
var args []string
|
var args []string
|
||||||
err = json.Unmarshal(data, &args)
|
err = json.Unmarshal(data, &args)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user