Skip to content

Add validation to gists if contents are empty#3578

Merged
mislav merged 2 commits intocli:trunkfrom
g14a:fix/empty-gist-contents
May 7, 2021
Merged

Add validation to gists if contents are empty#3578
mislav merged 2 commits intocli:trunkfrom
g14a:fix/empty-gist-contents

Conversation

@g14a
Copy link
Contributor

@g14a g14a commented May 4, 2021

This commit adds a validation whether or not gist contents are empty. If they are, throws an error for the same.

image

Fixes #3481

@g14a g14a changed the title shift gist validation to server rather than client Add validation to gists if contents are empty May 4, 2021
@g14a
Copy link
Contributor Author

g14a commented May 4, 2021

Thank you for the quick feedback @mislav :) Updated the PR

@mislav mislav force-pushed the fix/empty-gist-contents branch from 7df3c2d to 2fc2723 Compare May 7, 2021 12:12
@mislav mislav force-pushed the fix/empty-gist-contents branch from 2fc2723 to 70a9621 Compare May 7, 2021 12:15
Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

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

Fantastic; thank you!

Added some minor cleanups.

@mislav mislav enabled auto-merge May 7, 2021 12:16
@mislav mislav merged commit 026b07d into cli:trunk May 7, 2021
@chunyap1828
Copy link

This commit adds a validation whether or not gist contents are empty. If they are, throws an error for the same.

image

Fixes #3481

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.

unable to create a gist with a file containing only whitespace characters

4 participants