Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Gabriel Rohden
2020-09-06 15:05:21 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
03c5dc9043e39ae1e99ea5b1b3e6207651c0d490
03c5dc90
1 parent
672095be
refactor: Remove unneeded ()
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
lib/src/utils/regex/get_utils.dart
lib/src/utils/regex/get_utils.dart
View file @
03c5dc9
...
...
@@ -49,12 +49,12 @@ class GetUtils {
static
bool
isVideo
(
String
filePath
)
{
var
ext
=
filePath
.
toLowerCase
();
// FIXME: why all those ()?
return
(((((
ext
.
endsWith
(
".mp4"
)
||
ext
.
endsWith
(
".avi"
))
||
ext
.
endsWith
(
".wmv"
))
||
ext
.
endsWith
(
".rmvb"
))
||
ext
.
endsWith
(
".mpg"
))
||
ext
.
endsWith
(
".mpeg"
))
||
return
ext
.
endsWith
(
".mp4"
)
||
ext
.
endsWith
(
".avi"
)
||
ext
.
endsWith
(
".wmv"
)
||
ext
.
endsWith
(
".rmvb"
)
||
ext
.
endsWith
(
".mpg"
)
||
ext
.
endsWith
(
".mpeg"
)
||
ext
.
endsWith
(
".3gp"
);
}
...
...
@@ -62,10 +62,10 @@ class GetUtils {
static
bool
isImage
(
String
filePath
)
{
final
ext
=
filePath
.
toLowerCase
();
// FIXME: why all those ()?
return
(((
ext
.
endsWith
(
".jpg"
)
||
ext
.
endsWith
(
".jpeg"
))
||
ext
.
endsWith
(
".png"
))
||
ext
.
endsWith
(
".gif"
))
||
return
ext
.
endsWith
(
".jpg"
)
||
ext
.
endsWith
(
".jpeg"
)
||
ext
.
endsWith
(
".png"
)
||
ext
.
endsWith
(
".gif"
)
||
ext
.
endsWith
(
".bmp"
);
}
...
...
@@ -73,10 +73,10 @@ class GetUtils {
static
bool
isAudio
(
String
filePath
)
{
final
ext
=
filePath
.
toLowerCase
();
// FIXME: why all those ()?
return
(((
ext
.
endsWith
(
".mp3"
)
||
ext
.
endsWith
(
".wav"
))
||
ext
.
endsWith
(
".wma"
))
||
ext
.
endsWith
(
".amr"
))
||
return
ext
.
endsWith
(
".mp3"
)
||
ext
.
endsWith
(
".wav"
)
||
ext
.
endsWith
(
".wma"
)
||
ext
.
endsWith
(
".amr"
)
||
ext
.
endsWith
(
".ogg"
);
}
...
...
Please
register
or
login
to post a comment