refactor: simplify text validation

#2

Replace explicit text validation with simpler 'if text:' check that handles
all falsy cases (None, empty string, whitespace) while maintaining the same
functionality.

Cohere For AI org

hey thanks. I've fixed this in my previous commit along with few other things.

shivi changed pull request status to closed

Yay! Nice one

Sign up or log in to comment