Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
asahasrabuddhe committed Nov 28, 2019
1 parent ea697fd commit 81389c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runnable.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ func (rn *Runnable) IsValidOS() bool {
return true
}

switch v.(type) {
switch val := v.(type) {
case string:
return runtime.GOOS == v.(string)
return runtime.GOOS == val
case []interface{}:
for _, s := range v.([]interface{}) {
for _, s := range val {
if runtime.GOOS == s.(string) {
return true
}
Expand Down

0 comments on commit 81389c2

Please sign in to comment.