Skip to content

Commit e5c4a67

Browse files
committed
Fixing linter issues
1 parent bd8a3aa commit e5c4a67

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ main() {
4242
log::message "Task found with the id: $task_id"
4343

4444
export TEAMWORK_TASK_ID=$task_id
45-
export TEAMWORK_PROJECT_ID="$(teamwork::get_project_id_from_task "$task_id")"
45+
local -r project_id="$(teamwork::get_project_id_from_task "$task_id")"
46+
export TEAMWORK_PROJECT_ID=$project_id
4647

4748
if [ "$event" == "pull_request" ] && [ "$action" == "opened" ]; then
4849
teamwork::pull_request_opened

src/teamwork.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ teamwork::move_task_to_column() {
6464
return
6565
fi
6666

67-
local -r column_id=$(teamwork::get_matching_board_column_id $column_name)
68-
67+
local -r column_id=$(teamwork::get_matching_board_column_id "$column_name")
6968
if [ -z "$column_id" ]; then
7069
log::message "Failed to find a matching board column for '$column_name'"
7170
return

0 commit comments

Comments
 (0)