mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
[Functions] Fixed typos:
- 'gettext' should be used as '_' is not defined - Identical expressions should not be used on both sides of a binary operator.
This commit is contained in:
parent
29ae6dfbf6
commit
14f21921bb
@ -398,8 +398,9 @@ class FunctionView(PGChildNodeView, DataTypeReader, SchemaDiffObjectCompare):
|
|||||||
if fnid is not None:
|
if fnid is not None:
|
||||||
if len(rset['rows']) == 0:
|
if len(rset['rows']) == 0:
|
||||||
return gone(
|
return gone(
|
||||||
_("Could not find the specified %s.").format(
|
gettext("Could not find the specified %s.").format(
|
||||||
self.node_type)
|
self.node_type
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
row = rset['rows'][0]
|
row = rset['rows'][0]
|
||||||
@ -624,7 +625,7 @@ class FunctionView(PGChildNodeView, DataTypeReader, SchemaDiffObjectCompare):
|
|||||||
|
|
||||||
arg = ''
|
arg = ''
|
||||||
|
|
||||||
if argmode and argmode:
|
if argmode:
|
||||||
arg += argmode + " "
|
arg += argmode + " "
|
||||||
if argname:
|
if argname:
|
||||||
arg += argname + " "
|
arg += argname + " "
|
||||||
|
Loading…
Reference in New Issue
Block a user