Skip to content

Commit

Permalink
chore: simplify if statement
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Gumprich <[email protected]>
  • Loading branch information
Nemental and rndmh3ro authored Jul 3, 2024
1 parent 0bfa32e commit 6af16e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/grafana_folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def create_folder(self, title, uid=None, parent_uid=None):
def get_folder(self, title, uid=None, parent_uid=None):
url = "/api/folders%s" % ("?parentUid=%s" % parent_uid if parent_uid else "")
response = self._send_request(url, headers=self.headers, method="GET")
if response is not None:
if response:
if uid:
folders = [item for item in response if item.get("uid") == uid]
else:
Expand Down

0 comments on commit 6af16e2

Please sign in to comment.