@@ -193,7 +193,6 @@ func pathExists(devicePath *string, deviceTransport string) error {
193
193
}
194
194
} else {
195
195
fpath , err := filepathGlob (* devicePath )
196
-
197
196
if err != nil {
198
197
return err
199
198
}
@@ -574,7 +573,7 @@ func writeInSCSIDeviceFile(hctl string, file string, content string) error {
574
573
filename := filepath .Join ("/sys/class/scsi_device" , hctl , "device" , file )
575
574
debug .Printf ("Write %q in %q.\n " , content , filename )
576
575
577
- f , err := osOpenFile (filename , os .O_TRUNC | os .O_WRONLY , 0200 )
576
+ f , err := osOpenFile (filename , os .O_TRUNC | os .O_WRONLY , 0o200 )
578
577
if err != nil {
579
578
debug .Printf ("Error while opening file %v: %v\n " , filename , err )
580
579
return err
@@ -639,7 +638,7 @@ func PersistConnector(c *Connector, filePath string) error {
639
638
640
639
// Persist persists the Connector to the specified file (ie /var/lib/pfile/myConnector.json)
641
640
func (c * Connector ) Persist (filePath string ) error {
642
- //file := path.Join("mnt", c.VolumeName+".json")
641
+ // file := path.Join("mnt", c.VolumeName+".json")
643
642
f , err := os .Create (filePath )
644
643
if err != nil {
645
644
return fmt .Errorf ("error creating iSCSI persistence file %s: %s" , filePath , err )
0 commit comments