Skip to content

Commit 82459bb

Browse files
committed
chore: enable stringXbytes rule from go-critic
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 parent 47f6206 commit 82459bb

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ linters:
2424
- paramTypeCombine
2525
- rangeValCopy
2626
- sloppyReassign
27-
- stringXbytes
2827
- tooManyResultsChecker
2928
- unnamedResult
3029
- whyNoLint

sysfs/class_scsitape.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (fs FS) SCSITapeClass() (SCSITapeClass, error) {
6262
validDevice := regexp.MustCompile(`^st\d+$`)
6363

6464
for _, d := range dirs {
65-
if !validDevice.Match([]byte(d.Name())) {
65+
if !validDevice.MatchString(d.Name()) {
6666
continue
6767
}
6868
tape, err := fs.parseSCSITape(d.Name())

0 commit comments

Comments
 (0)