Skip to content

Commit

Permalink
chore: remove unnecessary default value of the pad argument
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored Sep 9, 2024
1 parent 7c128db commit c3800ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibis/backends/sql/compilers/mssql.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ def visit_StartsWith(self, op, *, arg, start):
def visit_EndsWith(self, op, *, arg, end):
return arg.like(self.f.concat("%", end))

def visit_LPad(self, op, *, arg, length, pad=" "):
def visit_LPad(self, op, *, arg, length, pad):
return self.f.left(
self.f.right(
self.f.concat(self.f.replicate(pad, length - self.f.length(arg)), arg),
Expand All @@ -533,7 +533,7 @@ def visit_LPad(self, op, *, arg, length, pad=" "):
length,
)

def visit_RPad(self, op, *, arg, length, pad=" "):
def visit_RPad(self, op, *, arg, length, pad):
return self.f.left(self.f.concat(arg, self.f.replicate(pad, length)), length)


Expand Down

0 comments on commit c3800ac

Please sign in to comment.