container-registry / harbor-api-client

Inconsistent return statements PYL-R1710
Style
Minor
a year agoa year old
Either all return statements in a function should return an expression, or none of them should.
199        self.__logger_format = value
200        self.logger_formatter = logging.Formatter(self.__logger_format)
201
202    def get_api_key_with_prefix(self, identifier):203        """Gets API key (with prefix if set).
204
205        :param identifier: The identifier of apiKey.
Either all return statements in a function should return an expression, or none of them should.
516
517        return params
518
519    def select_header_accept(self, accepts):520        """Returns `Accept` based on an array of accepts provided.
521
522        :param accepts: List of headers.