aboutsummaryrefslogtreecommitdiff
path: root/Sources/arguments_source.swift
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2017-05-18 23:39:25 -0500
committerBen Beltran <ben@nsovocal.com>2017-05-18 23:39:25 -0500
commit1263f62c5c6379f11e19eb184ffedf5889390b70 (patch)
treef594221e77f5a6163ed96ad1c56556240ec8ea86 /Sources/arguments_source.swift
parent6608973cc785af2363b71299e03407e5dd436f54 (diff)
Fix linter warnings
Diffstat (limited to 'Sources/arguments_source.swift')
-rw-r--r--Sources/arguments_source.swift14
1 files changed, 6 insertions, 8 deletions
diff --git a/Sources/arguments_source.swift b/Sources/arguments_source.swift
index c07c952..d1bf4c6 100644
--- a/Sources/arguments_source.swift
+++ b/Sources/arguments_source.swift
@@ -1,17 +1,15 @@
/// Source that deals with command line
class ArgumentsSource: Source {
public var currentTrack: Track? {
- get {
- if CommandLine.arguments.count >= 3 {
+ if CommandLine.arguments.count >= 3 {
- // expected usage: $ ./lyricli <artist> <name>
+ // expected usage: $ ./lyricli <artist> <name>
- let trackName: String = CommandLine.arguments[2]
- let trackArtist: String = CommandLine.arguments[1]
+ let trackName: String = CommandLine.arguments[2]
+ let trackArtist: String = CommandLine.arguments[1]
- return Track(withName: trackName, andArtist: trackArtist)
- }
- return nil
+ return Track(withName: trackName, andArtist: trackArtist)
}
+ return nil
}
}