mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
Fix style of eq operator
This commit is contained in:
parent
0e485625ff
commit
908da627b8
1 changed files with 2 additions and 2 deletions
|
@ -141,9 +141,9 @@ def escape_fish_cmd(text):
|
|||
|
||||
def strip_one_layer(text, char):
|
||||
# Strip the text from one layer of a given character
|
||||
if text[-1]==char:
|
||||
if text[-1] == char:
|
||||
text = text[:-1]
|
||||
if text[0]==char:
|
||||
if text[0] == char:
|
||||
text = text[1:]
|
||||
return text
|
||||
|
||||
|
|
Loading…
Reference in a new issue