diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2023-04-19 17:53:28 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2023-04-19 17:53:28 -0700 |
| commit | c8bfd6061f5079f6c6c0155a2de1e8cd32d8a39a (patch) | |
| tree | f85d63284948a159023080eae7703639f861403b /hotline/files.go | |
| parent | 902b8ac1e0d96f6c88a9bd352cb32b6bf69105d0 (diff) | |
Use strings.ReplaceAll method
Diffstat (limited to 'hotline/files.go')
| -rw-r--r-- | hotline/files.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hotline/files.go b/hotline/files.go index 9c3efe2..63fa482 100644 --- a/hotline/files.go +++ b/hotline/files.go @@ -117,7 +117,7 @@ func getFileNameList(path string, ignoreList []string) (fields []Field, err erro copy(fnwi.Creator[:], hlFile.ffo.FlatFileInformationFork.CreatorSignature) } - strippedName := strings.Replace(file.Name(), ".incomplete", "", -1) + strippedName := strings.ReplaceAll(file.Name(), ".incomplete", "") nameSize := make([]byte, 2) binary.BigEndian.PutUint16(nameSize, uint16(len(strippedName))) |