Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
fix: missing first line with datasource acc test examples
Browse files Browse the repository at this point in the history
  • Loading branch information
eremid committed Mar 7, 2023
1 parent b82fed7 commit fe1e99d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/example/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ func genExampleFromTest(str, tfType string) (string, string) {
// check for tf name
if tfNameRe.MatchString(line) {
foundTfType := tfNameRe.FindStringSubmatch(line)[1]
if tfType != foundTfType {
continue
} else {
if tfType == foundTfType {
tfName = tfNameRe.FindStringSubmatch(line)[2]
logger.Logger.Info().Msgf("found tf name: %s", tfName)
}
Expand Down

0 comments on commit fe1e99d

Please sign in to comment.