summaryrefslogtreecommitdiff
path: root/internal/file/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/file/file.go')
-rw-r--r--internal/file/file.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/internal/file/file.go b/internal/file/file.go
index 7d9d7e8..513212b 100644
--- a/internal/file/file.go
+++ b/internal/file/file.go
@@ -155,6 +155,5 @@ func (f pathnameFile) String() string {
// As data comes in from arrays, converted to slices, there will be null-bytes at the end..
func stringValue(byteStr []byte) string {
- // TODO: Hopefully, this won't cause a panic when the filename is as long as the array itself. Unit test this!
return string(byteStr[:bytes.IndexByte(byteStr, 0)])
}