Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
refactor: remove duplicate line within get_object_meta
  • Loading branch information
cloudfee authored and huiguangjun committed Dec 27, 2019
1 parent a427f35 commit 0ad0a0a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion oss2/api.py
Expand Up @@ -987,7 +987,6 @@ def object_exists(self, key, headers=None):
#
# 目前的实现是通过get_object_meta判断文件是否存在。

headers = http.CaseInsensitiveDict(headers)
logger.debug("Start to check if object exists, bucket: {0}, key: {1}".format(self.bucket_name, to_string(key)))
try:
self.get_object_meta(key, headers=headers)
Expand Down

0 comments on commit 0ad0a0a

Please sign in to comment.