Skip to content

Commit c8dbf47

Browse files
NishantBansal2003rustyrussell
authored andcommitted
pyln-client: remove unused doc variable from plugin.
The `doc` variable was being initialised and processed but not used anywhere. Changelog-None Signed-off-by: Nishant Bansal <[email protected]>
1 parent b6c1ffa commit c8dbf47

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

contrib/pyln-client/pyln/client/plugin.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -938,16 +938,6 @@ def _getmanifest(self, **kwargs) -> JSONType:
938938
'after': method.after})
939939
continue
940940

941-
doc = inspect.getdoc(method.func)
942-
if not doc:
943-
self.log(
944-
'RPC method \'{}\' does not have a docstring.'.format(
945-
method.name
946-
)
947-
)
948-
doc = "Undocumented RPC method from a plugin."
949-
doc = re.sub('\n+', ' ', doc)
950-
951941
# For compatibility with lightningd prior to 24.08, we must
952942
# provide a description. Ignored by 24.08 onwards,
953943
description = method.description

0 commit comments

Comments
 (0)