1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Removed redundant check from WKTWriter.__init__().

This is already checked in trim.setter.
This commit is contained in:
Olivier Tabone 2023-07-11 14:13:19 +02:00 committed by Mariusz Felisiak
parent d1855c4847
commit 7f2bc365b3

View File

@ -189,8 +189,7 @@ class WKTWriter(IOBase):
def __init__(self, dim=2, trim=False, precision=None):
super().__init__()
if bool(trim) != self._trim:
self.trim = trim
self.trim = trim
if precision is not None:
self.precision = precision
self.outdim = dim