Resolve travis-ci / gofmt issue with common.go
This commit is contained in:
@@ -18,8 +18,8 @@ package backingstore
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"io"
|
||||
"os"
|
||||
|
||||
"github.com/gostor/gotgt/pkg/api"
|
||||
"github.com/gostor/gotgt/pkg/scsi"
|
||||
@@ -68,7 +68,7 @@ func (bs *FileBackingStore) Open(dev *api.SCSILu, path string) error {
|
||||
|
||||
if err == nil {
|
||||
// block device filesize needs to be treated differently
|
||||
if mode&os.ModeDevice != 0 {
|
||||
if (mode & os.ModeDevice) != 0 {
|
||||
pos, err := f.Seek(0, io.SeekEnd)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user