mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 09:58:54 +08:00
Fix style of eq operator
This commit is contained in:
parent
0e485625ff
commit
908da627b8
@ -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…
x
Reference in New Issue
Block a user