From fd7a3d880ee3ac40287b21a536a98dfa057578c9 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 23 Jun 2020 23:02:26 +0300 Subject: [PATCH] lib/fs: go fmt --- lib/fs/reader_at.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fs/reader_at.go b/lib/fs/reader_at.go index 0c5e6d7cc0..672a8d48df 100644 --- a/lib/fs/reader_at.go +++ b/lib/fs/reader_at.go @@ -90,7 +90,7 @@ func (r *ReaderAt) MustReadAt(p []byte, off int64) { } func (r *ReaderAt) isInPageCache(start, end int64) bool { - if int64(len(r.mmapData)) - end < 4096 { + if int64(len(r.mmapData))-end < 4096 { // If standard copy(dst, src) from Go may read beyond len(src), then this should help // fixing SIGBUS panic from https://github.com/VictoriaMetrics/VictoriaMetrics/issues/581 return false