Skip to content

Conversation

@vchan
Copy link
Contributor

@vchan vchan commented Feb 17, 2023

No description provided.

@vchan vchan requested a review from SQLMesh February 17, 2023 01:29
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if new_path != path, if new_path is none, this just won't work right

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If new_path is None, I want to skip this block

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't it the same new-path and new_path != path is the same is new_path != path because path is not None

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see what you mean. I want the following block to run (it moves a file) if new_path != path, except if new_path is None. If new_path is None, then there's nowhere to move the file.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like you could dry this up

@vchan vchan force-pushed the vchan/api-rename-files branch from 53de7d6 to f513315 Compare February 17, 2023 21:01
@vchan vchan merged commit 75c6da2 into main Feb 17, 2023
@vchan vchan deleted the vchan/api-rename-files branch February 17, 2023 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants