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