Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
092fffcf
authored
Sep 12, 2016
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage: remove unecessary 'if' from get_default_datastore method
parent
d82f4c8f
Pipeline
#209
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
circle/storage/models.py
+1
-3
No files found.
circle/storage/models.py
View file @
092fffcf
...
@@ -113,9 +113,7 @@ class DataStore(Model):
...
@@ -113,9 +113,7 @@ class DataStore(Model):
@classmethod
@classmethod
def
get_default_datastore
(
cls
):
def
get_default_datastore
(
cls
):
datastore_name
=
settings
.
DEFAULT_DATASTORE
return
cls
.
objects
.
get
(
name
=
settings
.
DEFAULT_DATASTORE
)
if
datastore_name
:
return
cls
.
objects
.
get
(
name
=
datastore_name
)
class
Disk
(
TimeStampedModel
):
class
Disk
(
TimeStampedModel
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment