Skip to content

Commit

Permalink
golangci-lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maltelehmann committed Oct 3, 2024
1 parent ef61486 commit 6b0a993
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/resources/oncall/resource_shift.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func resourceOnCallShiftCreate(ctx context.Context, d *schema.ResourceData, clie

untilData, untilOk := d.GetOk("until")
if untilOk {
if typeData == singleEvent {
if typeData == singleEvent {
return diag.Errorf("`until` can not be set with type: %s", typeData)
} else {
u := untilData.(string)
Expand Down Expand Up @@ -434,9 +434,9 @@ func resourceOnCallShiftUpdate(ctx context.Context, d *schema.ResourceData, clie
}
}

untilData, untilOk := d.GetOk("until")
untilData, untilOk := d.GetOk("until")
if untilOk {
if typeData == singleEvent {
if typeData == singleEvent {
return diag.Errorf("`until` can not be set with type: %s", typeData)
} else {
u := untilData.(string)
Expand Down

0 comments on commit 6b0a993

Please sign in to comment.