Skip to content

Commit 20773a8

Browse files
bendbennettbflad
andauthored
Apply suggestions from code review
Co-authored-by: Brian Flad <[email protected]>
1 parent 47c06ec commit 20773a8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

internal/provider/data_source_archive_file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func archive(ctx context.Context, model fileModel) error {
163163
archiver.SetOutputFileMode(outputFileMode)
164164
}
165165

166-
switch true {
166+
switch {
167167
case !model.SourceDir.IsNull():
168168
excludeList := make([]string, len(model.Excludes.Elements()))
169169

internal/provider/data_source_archive_file_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ func TestAccArchiveFile_Basic(t *testing.T) {
8787
}
8888

8989
func TestDataSource_UpgradeFromVersion2_2_0_ContentConfig(t *testing.T) {
90-
td := testTempDir(t)
91-
defer os.RemoveAll(td)
90+
td := t.TempDir()
9291

9392
f := filepath.Join(td, "zip_file_acc_test_upgrade_content_config.zip")
9493

0 commit comments

Comments
 (0)