Skip to content

Commit

Permalink
Formatting fixes and whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
RawToast committed Mar 31, 2018
1 parent fe04862 commit 6c2c7ea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
1 change: 0 additions & 1 deletion dokusho/src/App.re
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[%bs.raw {|require('./toolbox/theme.css')|}];
[%bs.raw {|require('../node_modules/auth0-js/build/auth0.js')|}];
[%bs.raw {|require('./toolbox/theme.css')|}];

[@bs.module]
external theme : ReactToolbox.ThemeProvider.theme = "./toolbox/theme";
Expand Down
1 change: 0 additions & 1 deletion dokusho/src/app/Dokusho.re
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ open Actions;
open DokuUtil;
open Rationale;


module Dokusho {
let component = ReasonReact.reducerComponent("Dokusho");
let initState = () => {
Expand Down
23 changes: 12 additions & 11 deletions dokusho/src/app/LoginButton.re
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,18 @@ module Auth {
| Some(s) => s
};

let resolveRegex = (exp, str) => {
let res = exp |> Js.Re.exec(str);
switch res {
| None => ""
| Some(result) => {
let captures = result |> Js.Re.captures;
switch captures {
| [|_, token|] => token |> Js.Nullable.to_opt |> resolveOption
| _ => ""
};
}};
let resolveRegex = (exp, str) => {
let res = exp |> Js.Re.exec(str);
switch res {
| None => ""
| Some(result) => {
let captures = result |> Js.Re.captures;
switch captures {
| [|_, token|] => token |> Js.Nullable.to_opt |> resolveOption
| _ => ""
};
}
};
};

open Types;
Expand Down

0 comments on commit 6c2c7ea

Please sign in to comment.