Skip to content

Commit

Permalink
Remove dependence on io/ioutil, update Go to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
donatwork committed Aug 21, 2023
1 parent 686e65d commit 4390487
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/dell/karavi-metrics-powerflex

go 1.20
go 1.21

require (
github.com/dell/goscaleio v1.10.0
Expand Down
5 changes: 2 additions & 3 deletions internal/service/configuration_reader.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2021-2022 Dell Inc. or its subsidiaries. All Rights Reserved.
Copyright (c) 2021-2023 Dell Inc. or its subsidiaries. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -18,7 +18,6 @@ package service

import (
"fmt"
"io/ioutil"
"os"
"path/filepath"

Expand Down Expand Up @@ -46,7 +45,7 @@ func (c *ConfigurationReader) GetStorageSystemConfiguration(file string) ([]Arra
return nil, fmt.Errorf(fmt.Sprintf("File %s does not exist", file))
}

config, err := ioutil.ReadFile(filepath.Clean(file))
config, err := os.ReadFile(filepath.Clean(file))
if err != nil {
return nil, fmt.Errorf(fmt.Sprintf("File %s errors: %v", file, err))
}
Expand Down

0 comments on commit 4390487

Please sign in to comment.