Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] scp remote #117

Closed
wants to merge 1 commit into from
Closed

[WIP] scp remote #117

wants to merge 1 commit into from

Conversation

tmspzz
Copy link
Owner

@tmspzz tmspzz commented Feb 22, 2018

Adds scp remote as of #116


caseInsensitiveLookup :: T.Text -> M.HashMap T.Text b -> Maybe b
caseInsensitiveLookup key hashmap = (M.lookup key hashmap) <|> (M.lookup (T.toUpper key) hashmap) <|> (M.lookup (T.toLower key) hashmap)
Copy link

@hlintBot hlintBot Feb 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Found Redundant bracket

1(M.lookup key hashmap) <|> (M.lookup (T.toUpper key) hashmap)

Why Not

1M.lookup key hashmap <|> (M.lookup (T.toUpper key) hashmap)


caseInsensitiveLookup :: T.Text -> M.HashMap T.Text b -> Maybe b
caseInsensitiveLookup key hashmap = (M.lookup key hashmap) <|> (M.lookup (T.toUpper key) hashmap) <|> (M.lookup (T.toLower key) hashmap)
Copy link

@hlintBot hlintBot Feb 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Found Redundant bracket

1(M.lookup key hashmap) <|> (M.lookup (T.toUpper key) hashmap)

Why Not

1(M.lookup key hashmap) <|> M.lookup (T.toUpper key) hashmap


caseInsensitiveLookup :: T.Text -> M.HashMap T.Text b -> Maybe b
caseInsensitiveLookup key hashmap = (M.lookup key hashmap) <|> (M.lookup (T.toUpper key) hashmap) <|> (M.lookup (T.toLower key) hashmap)
Copy link

@hlintBot hlintBot Feb 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Found Redundant bracket

1(M.lookup key hashmap) <|> (M.lookup (T.toUpper key) hashmap) <|>
2  (M.lookup (T.toLower key) hashmap)

Why Not

1(M.lookup key hashmap) <|> (M.lookup (T.toUpper key) hashmap) <|>
2  M.lookup (T.toLower key) hashmap

@hlintBot
Copy link

hlintBot commented Feb 22, 2018

1 Warning
⚠️ PR is classed as Work in Progress

Generated by 🚫 Danger

@tmspzz tmspzz force-pushed the feature/scp-remote branch from c782c27 to e447363 Compare April 28, 2018 16:44
@tmspzz tmspzz force-pushed the feature/scp-remote branch from e447363 to f5d866a Compare April 28, 2018 16:51
@tmspzz tmspzz closed this Aug 20, 2019
@tmspzz tmspzz deleted the feature/scp-remote branch August 20, 2019 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants