Skip to content

Commit

Permalink
ISSUE-376: Refactoring return condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Jaswal committed Aug 31, 2023
1 parent 4476f53 commit 54a027a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions controllers/configuration_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1146,10 +1146,7 @@ func (meta *TFConfigurationMeta) isTFStateGenerated(ctx context.Context) bool {
}

Check warning on line 1146 in controllers/configuration_controller.go

View check run for this annotation

Codecov / codecov/patch

controllers/configuration_controller.go#L1145-L1146

Added lines #L1145 - L1146 were not covered by tests
// 2. and exist tfstate file
_, err := meta.Backend.GetTFStateJSON(ctx)
if err != nil {
return false
}
return true
return err == nil
}

//nolint:funlen
Expand Down

0 comments on commit 54a027a

Please sign in to comment.