-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove readFile() and reverseSlice() in favour of stdlib (#671)
* Update updater.go remove readFile() as it appears to essentially be a re-implementation of stdlib's os.ReadFile Signed-off-by: udf2457 <[email protected]> * Remove ReadFile from cli/tuf-client/cmd/root.go Another instance of re-implementing os.ReadFile. This one does not even appear to be used by the cli code. Signed-off-by: udf2457 <[email protected]> * Update init.go Reference os.Readfile instead of the re-implementation Signed-off-by: udf2457 <[email protected]> * Update root.go Remove ReadFile re-implementation Signed-off-by: udf2457 <[email protected]> * Update metadata.go to use os.ReadFile Don't reinvent the wheel, use stdlib os.ReadFile 😉 Signed-off-by: udf2457 <[email protected]> * Update updater.go - remove reimplementation of slices.Reverse() Remive the reimplementation of stdlib slices.Reverse() Signed-off-by: udf2457 <[email protected]> * Update root.go remove un-necessary io import Signed-off-by: udf2457 <[email protected]> * Update root.go Remove io import Signed-off-by: udf2457 <[email protected]> --------- Signed-off-by: udf2457 <[email protected]>
- Loading branch information
Showing
5 changed files
with
7 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters