Skip to content

Commit 62f5e86

Browse files
committed
fix: linter syntax fixes
1 parent cc65e01 commit 62f5e86

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/teamwork.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ teamwork::pull_request_review_submitted() {
203203
---
204204
205205
Review: **$review_state ✅**"
206-
if [ ! -z "$comment" ]; then
206+
if [ -n -z "$comment" ]; then
207207
teamwork::add_comment "Comment: $comment"
208208
fi
209209
teamwork::add_tag "PR Approved"
@@ -219,7 +219,7 @@ fi
219219
---
220220
221221
Review: **$review_state 😔**"
222-
if [ ! -z "$comment" ]; then
222+
if [ -n -z "$comment" ]; then
223223
teamwork::add_comment "Comment: $comment"
224224
fi
225225

@@ -232,7 +232,7 @@ fi
232232
teamwork::pull_request_review_dismissed() {
233233
local -r user=$(github::get_sender_user)
234234
teamwork::add_comment "Review dismissed by $user"
235-
if [ ! -z "$comment" ]; then
235+
if [ -n -z "$comment" ]; then
236236
teamwork::add_comment "Comment: $comment"
237237
fi
238238
teamwork::remove_tag "PR Open"

0 commit comments

Comments
 (0)