You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/04/24 02:52:00 UTC

[jira] [Commented] (AIRFLOW-4399) To avoid duplicated os.path.isfile(filepath) checks in models.dagbag

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

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

XD-DENG commented on pull request #5165: [AIRFLOW-4399] Avoid duplicated os.path.isfile() check in models.dagbag
URL: https://github.com/apache/airflow/pull/5165
 
 
   ### Jira
   
     - https://issues.apache.org/jira/browse/AIRFLOW-4399
   
   ### Description
   
   The check which is removed in this commit always returns `True` for sure, because the same check has already been done earlier in this function body https://github.com/apache/airflow/blob/de1795c8f1e65a5f4a848e88ef3848ba51aab449/airflow/models/dagbag.py#L157-L158
   
   
 
----------------------------------------------------------------
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:
users@infra.apache.org


> To avoid duplicated os.path.isfile(filepath) checks in models.dagbag
> --------------------------------------------------------------------
>
>                 Key: AIRFLOW-4399
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4399
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: models
>    Affects Versions: 1.10.3
>            Reporter: Xiaodong DENG
>            Assignee: Xiaodong DENG
>            Priority: Minor
>             Fix For: 1.10.4
>
>
> There are duplicated os.path.isfile(filepath) checks, among which the 2nd one is not necessary.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)