[ 
https://issues.apache.org/jira/browse/AIRFLOW-5489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16930114#comment-16930114
 ] 

ASF GitHub Bot commented on AIRFLOW-5489:
-----------------------------------------

aijamalnk commented on pull request #6106: [AIRFLOW-5489] Remove unneeded 
assignment of variable
URL: https://github.com/apache/airflow/pull/6106
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> bash_senor: Remove unneeded assignment of variable
> --------------------------------------------------
>
>                 Key: AIRFLOW-5489
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5489
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: operators
>    Affects Versions: 1.10.6
>            Reporter: Jakob Homan
>            Priority: Minor
>              Labels: ccoss2019, newbie
>
> Note: This ticket's being created to facilitate a new contributor's workshop 
> for Airflow. After the workshop has completed, I'll mark these all available 
> for anyone that might like to take them on.
> The `line` variable is assigned to `''` but then immediately reassigned in 
> the loop.  This first assignment should be deleted.
> airflow/contrib/sensors/bash_sensor.py:83
> {code:java}
> line = ''
> for line in iter(sp.stdout.readline, b''):
>     line = line.decode(self.output_encoding).strip()
>     self.log.info(line)
> sp.wait()
> self.log.info("Command exited with return code %s", sp.returncode) {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to