Skip to content

Commit

Permalink
Fixing the linting error (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
tssushma authored Dec 15, 2023
1 parent 2d80085 commit 2527f55
Show file tree
Hide file tree
Showing 23 changed files with 266 additions and 169 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: "1.21"
go-version: "1.20"
cache: false
- name: Checkout the code
uses: actions/[email protected]
Expand Down
8 changes: 4 additions & 4 deletions base.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ func (bc *baseConnector) disconnectDevicesByDeviceName(ctx context.Context, name
var wwn string
if strings.HasPrefix(name, deviceMapperPrefix) {
wwn, err = bc.getDMWWN(ctx, name)

} else {
wwn, err = bc.scsi.GetDeviceWWN(ctx, []string{name})
}
Expand All @@ -114,7 +113,6 @@ func (bc *baseConnector) disconnectNVMEDevicesByDeviceName(ctx context.Context,
var wwn string
if strings.HasPrefix(name, deviceMapperPrefix) {
wwn, err = bc.getNVMEDMWWN(ctx, name)

} else {
wwn, err = bc.scsi.GetNVMEDeviceWWN(ctx, []string{name})
}
Expand All @@ -132,7 +130,8 @@ func (bc *baseConnector) disconnectNVMEDevicesByDeviceName(ctx context.Context,
}

func (bc *baseConnector) cleanNVMeDevices(ctx context.Context,
force bool, devices []string) error {
force bool, devices []string,
) error {
defer tracer.TraceFuncCall(ctx, "baseConnector.cleanNVMeDevices")()
var newDevices []string
for _, device := range devices {
Expand Down Expand Up @@ -168,7 +167,8 @@ func (bc *baseConnector) cleanNVMeDevices(ctx context.Context,
}

func (bc *baseConnector) cleanDevices(ctx context.Context,
force bool, devices []string) error {
force bool, devices []string,
) error {
defer tracer.TraceFuncCall(ctx, "baseConnector.cleanDevices")()
dm, err := bc.scsi.GetDMDeviceByChildren(ctx, devices)
if err != nil {
Expand Down
Loading

0 comments on commit 2527f55

Please sign in to comment.