From 13ffc9a8bf9ce6c456c4d77564cbc0b54de33913 Mon Sep 17 00:00:00 2001 From: rjh-yext <59895513+rjh-yext@users.noreply.github.com> Date: Tue, 6 Dec 2022 13:59:27 -0500 Subject: [PATCH] Required weekday fix (#15) * fixing golang syntax errors in resource_build_trigger_schedule --- teamcity/resource_build_trigger_schedule.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/teamcity/resource_build_trigger_schedule.go b/teamcity/resource_build_trigger_schedule.go index d8fd15b..d31fe65 100644 --- a/teamcity/resource_build_trigger_schedule.go +++ b/teamcity/resource_build_trigger_schedule.go @@ -215,8 +215,7 @@ func resourceBuildTriggerScheduleCreate(d *schema.ResourceData, meta interface{} } if strings.EqualFold(schedule, "weekly") { - triggerWeekday, ok := d.GetOk("weekday") - if !ok { + if _, ok := d.GetOk("weekday"); !ok { return fmt.Errorf("weekday is required if a schedule of weekly is chosen") } }