Skip to content

Commit

Permalink
Lint the code
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Oct 24, 2023
1 parent 07b6a0d commit 3f0c02a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions jupyterlab_git/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -1989,7 +1989,7 @@ async def stash(self, path: str, stashMsg: str = "") -> dict:
# code 0: no changes to stash
if code != 0:
return {"code": code, "command": " ".join(cmd), "message": error}

return {"code": code, "message": output.strip()}

async def stash_list(self, path: str) -> dict:
Expand All @@ -2011,7 +2011,7 @@ async def stash_list(self, path: str) -> dict:
match = GIT_STASH_LIST.match(line)
if match is not None:
d = match.groupdict()
d['index'] = int(d['index'])
d["index"] = int(d["index"])
stashes.append(d)

return {"code": code, "stashes": stashes}
Expand Down Expand Up @@ -2059,7 +2059,7 @@ async def pop_stash(self, path: str, stash_index: Optional[int] = None) -> dict:

if code != 0:
return {"code": code, "command": " ".join(cmd), "message": error}

return {"code": code, "message": output.strip()}

async def drop_stash(self, path, stash_index: Optional[int] = None) -> dict:
Expand All @@ -2085,7 +2085,7 @@ async def drop_stash(self, path, stash_index: Optional[int] = None) -> dict:

if code != 0:
return {"code": code, "command": " ".join(cmd), "message": error}

return {"code": code, "message": output.strip()}

async def apply_stash(self, path: str, stash_index: Optional[int] = None) -> dict:
Expand All @@ -2112,7 +2112,7 @@ async def apply_stash(self, path: str, stash_index: Optional[int] = None) -> dic
# error:
if code != 0:
return {"code": code, "command": " ".join(cmd), "message": error}

return {"code": code, "message": output.strip()}

@property
Expand Down
2 changes: 1 addition & 1 deletion src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ export namespace Git {
}

/**
* Stash entry given by
* Stash entry given by
*/
export interface IStashEntry {
/**
Expand Down

0 comments on commit 3f0c02a

Please sign in to comment.